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,9 +108,7 @@ 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">
|
||||||
|
@ -127,6 +124,5 @@ export default function Wrapped() {
|
||||||
</Dialog.Content>
|
</Dialog.Content>
|
||||||
</Dialog.Portal>
|
</Dialog.Portal>
|
||||||
</Dialog.Root>
|
</Dialog.Root>
|
||||||
</LumeIdentityContext.Provider>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue