* MED-151: add profile view and working smoking dashboard card * update zod * move some components to shared * move some components to shared * remove console.logs * remove unused password form components * only check null for variant * use pathsconfig
9 lines
294 B
TypeScript
9 lines
294 B
TypeScript
import { z } from 'zod';
|
|
|
|
export const accountPreferencesSchema = z.object({
|
|
preferredLanguage: z.enum(['et', 'en', 'ru']).optional().nullable(),
|
|
isConsentToAnonymizedCompanyStatistics: z.boolean().optional(),
|
|
});
|
|
|
|
export type AccountPreferences = z.infer<typeof accountPreferencesSchema>;
|