Refactor input arch (#1982)

This commit is contained in:
Charles Bochet
2023-10-12 17:41:50 +02:00
committed by GitHub
parent 09fd5b6454
commit 6b990c8501
47 changed files with 312 additions and 523 deletions

View File

@ -14,7 +14,7 @@ import { currentUserState } from '@/auth/states/currentUserState';
import { ProfilePictureUploader } from '@/settings/profile/components/ProfilePictureUploader';
import { PageHotkeyScope } from '@/types/PageHotkeyScope';
import { MainButton } from '@/ui/button/components/MainButton';
import { TextInputSettings } from '@/ui/input/text/components/TextInputSettings';
import { TextInput } from '@/ui/input/components/TextInput';
import { useSnackBar } from '@/ui/snack-bar/hooks/useSnackBar';
import { H2Title } from '@/ui/typography/components/H2Title';
import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/useScopedHotkeys';
@ -145,7 +145,7 @@ export const CreateProfile = () => {
field: { onChange, onBlur, value },
fieldState: { error },
}) => (
<TextInputSettings
<TextInput
autoFocus
label="First Name"
value={value}
@ -165,7 +165,7 @@ export const CreateProfile = () => {
field: { onChange, onBlur, value },
fieldState: { error },
}) => (
<TextInputSettings
<TextInput
label="Last Name"
value={value}
onBlur={onBlur}

View File

@ -11,7 +11,7 @@ import { Title } from '@/auth/components/Title';
import { WorkspaceLogoUploader } from '@/settings/workspace/components/WorkspaceLogoUploader';
import { PageHotkeyScope } from '@/types/PageHotkeyScope';
import { MainButton } from '@/ui/button/components/MainButton';
import { TextInputSettings } from '@/ui/input/text/components/TextInputSettings';
import { TextInput } from '@/ui/input/components/TextInput';
import { useSnackBar } from '@/ui/snack-bar/hooks/useSnackBar';
import { H2Title } from '@/ui/typography/components/H2Title';
import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/useScopedHotkeys';
@ -122,7 +122,7 @@ export const CreateWorkspace = () => {
field: { onChange, onBlur, value },
fieldState: { error },
}) => (
<TextInputSettings
<TextInput
autoFocus
value={value}
placeholder="Apple"