refactor: LumeIdentityContext and Session no longer needed
This commit is contained in:
parent
39f3984ee4
commit
0e740775cb
|
@ -5,7 +5,6 @@ import {
|
||||||
useSwitchableComponent,
|
useSwitchableComponent,
|
||||||
} from "../../SwitchableComponent";
|
} from "../../SwitchableComponent";
|
||||||
import * as ComponentList from "./components";
|
import * as ComponentList from "./components";
|
||||||
import { LumeIdentityContext, Session } from "./LumeIdentityContext";
|
|
||||||
import { LazyMotion, domAnimation } from "framer-motion";
|
import { LazyMotion, domAnimation } from "framer-motion";
|
||||||
import * as Dialog from "@radix-ui/react-dialog";
|
import * as Dialog from "@radix-ui/react-dialog";
|
||||||
import LumeLogoBg from "./LumeLogoBg";
|
import LumeLogoBg from "./LumeLogoBg";
|
||||||
|
@ -109,24 +108,21 @@ const LumeIdentity: FC = () => {
|
||||||
// hitting my screen, it is almost impossible to see whats happening the outline
|
// hitting my screen, it is almost impossible to see whats happening the outline
|
||||||
// buttons have no contrast
|
// buttons have no contrast
|
||||||
export default function Wrapped() {
|
export default function Wrapped() {
|
||||||
const [session, setSession] = useState<Session>();
|
|
||||||
return (
|
return (
|
||||||
<LumeIdentityContext.Provider value={{ session, setSession }}>
|
<Dialog.Root>
|
||||||
<Dialog.Root>
|
<Dialog.Trigger asChild>
|
||||||
<Dialog.Trigger asChild>
|
<button className="bg-primary text-primary-foreground p-2 px-4 text-sm font-semibold font-mono rounded-md">
|
||||||
<button className="bg-primary text-primary-foreground p-2 px-4 text-sm font-semibold font-mono rounded-md">
|
Open Lume
|
||||||
Open Lume
|
</button>
|
||||||
</button>
|
</Dialog.Trigger>
|
||||||
</Dialog.Trigger>
|
<Dialog.Portal>
|
||||||
<Dialog.Portal>
|
<Dialog.Overlay className="bg-black/90 data-[state=open]:animate-overlayShow fixed inset-0" />
|
||||||
<Dialog.Overlay className="bg-black/90 data-[state=open]:animate-overlayShow fixed inset-0" />
|
<Dialog.Content className="w-full h-full flex items-center justify-center">
|
||||||
<Dialog.Content className="w-full h-full flex items-center justify-center">
|
<SwitchableComponentProvider>
|
||||||
<SwitchableComponentProvider>
|
<LumeIdentity />
|
||||||
<LumeIdentity />
|
</SwitchableComponentProvider>
|
||||||
</SwitchableComponentProvider>
|
</Dialog.Content>
|
||||||
</Dialog.Content>
|
</Dialog.Portal>
|
||||||
</Dialog.Portal>
|
</Dialog.Root>
|
||||||
</Dialog.Root>
|
|
||||||
</LumeIdentityContext.Provider>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue