From 4e4ced81ba36dd5a8505a2b1b5c123ac8d56a023 Mon Sep 17 00:00:00 2001 From: Juan Di Toro Date: Sat, 7 Oct 2023 18:14:21 +0200 Subject: [PATCH] chore: linting --- .../lume/LumeIdentity/LumeIdentity.tsx | 2 +- src/components/lume/LumeIdentity/components.tsx | 17 ++++++----------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/components/lume/LumeIdentity/LumeIdentity.tsx b/src/components/lume/LumeIdentity/LumeIdentity.tsx index b8e3c53..5586487 100644 --- a/src/components/lume/LumeIdentity/LumeIdentity.tsx +++ b/src/components/lume/LumeIdentity/LumeIdentity.tsx @@ -3,7 +3,7 @@ import React from 'react'; import LumeLogoBg from '../../../assets/lume-logo-bg.svg?react'; import { Button } from '../../../components/ui/button'; import { SwitchableComponent, SwitchableComponentProvider, useSwitchableComponent } from '../../../components/SwitchableComponent'; -import ComponentList from "./components"; +import * as ComponentList from "./components"; import { LumeIdentityContext, Session } from './LumeIdentityContext'; import { LazyMotion, domAnimation } from 'framer-motion'; import * as Dialog from '@radix-ui/react-dialog'; diff --git a/src/components/lume/LumeIdentity/components.tsx b/src/components/lume/LumeIdentity/components.tsx index c187d8a..fa41db8 100644 --- a/src/components/lume/LumeIdentity/components.tsx +++ b/src/components/lume/LumeIdentity/components.tsx @@ -10,7 +10,7 @@ import { useLumeIndentity } from "./LumeIdentityContext"; const SubmitButtonComponent = () => { const { setVisibleComponent } = useSwitchableComponent(); return ( - ) @@ -59,7 +59,7 @@ const SetupAccountKeyComponent = () => { style={{ maxWidth: width ?? 'auto' }} ref={(t) => setTimeout(() => setWidth(t!.getBoundingClientRect().width!), 0)} > - @@ -139,12 +139,7 @@ const SeedPhraseGenerationComponent = ({ phraseLength = 12 }) => { ) }; -// Usage -const components = { - SubmitButton: makeSwitchable(SubmitButtonComponent, 'submit-button'), - SeedPhraseInput: makeSwitchable(SeedPhraseInputComponent, 'seed-phrase-input'), - SetupAccountKey: makeSwitchable(SetupAccountKeyComponent, 'setup-account-key'), - SeedPhraseGeneration: makeSwitchable(SeedPhraseGenerationComponent, 'seed-phrase-form'), -}; - -export default components; +export const SubmitButton = makeSwitchable(SubmitButtonComponent, 'submit-button'); +export const SeedPhraseInput = makeSwitchable(SeedPhraseInputComponent, 'seed-phrase-input'); +export const SetupAccountKey = makeSwitchable(SetupAccountKeyComponent, 'setup-account-key'); +export const SeedPhraseGeneration = makeSwitchable(SeedPhraseGenerationComponent, 'seed-phrase-form'); \ No newline at end of file