Standardize context naming

Fixes #7
This commit is contained in:
Ryan Gossiaux
2021-12-18 23:18:45 -08:00
parent 03399fc954
commit 70910c05b0
16 changed files with 20 additions and 18 deletions

View File

@@ -17,8 +17,8 @@
appear: boolean;
}
const TRANSITION_CONTEXT_NAME = "TransitionContext";
export const NESTING_CONTEXT_NAME = "NestingContext";
const TRANSITION_CONTEXT_NAME = "headlessui-transition-context";
export const NESTING_CONTEXT_NAME = "headlessui-nesting-context";
export function hasTransitionContext() {
return getContext(TRANSITION_CONTEXT_NAME) !== undefined;
}