Migrate account settings

This commit is contained in:
2025-05-16 22:57:47 +02:00
parent 924d710b2f
commit c478e8e8a1
5 changed files with 112 additions and 40 deletions

View File

@@ -0,0 +1,32 @@
import React from 'react';
import { Box, Stack, TextInput } from '@mantine/core';
import { UserProfileSettings } from '../../../types/settings';
interface ProfileSettingsProps {
settings: UserProfileSettings;
onInputChange: (key: keyof UserProfileSettings, value: string) => void;
}
const ProfileSettingsComponent: React.FC<ProfileSettingsProps> = ({
settings,
onInputChange,
}) => (
<Box>
<Stack gap="md">
<TextInput
label="Display Name"
value={settings.displayName || ''}
onChange={(e) => onInputChange('displayName', e.currentTarget.value)}
placeholder="Enter display name"
/>
<TextInput
label="Email"
value={settings.email || ''}
onChange={(e) => onInputChange('email', e.currentTarget.value)}
placeholder="Enter email"
/>
</Stack>
</Box>
);
export default ProfileSettingsComponent;