feat: implementing experience page (#718)
* feat: add color scheme toggle * feat: colorScheme stored in UserSettings model * feat: add stories * fix: AnimatePresence exit not working --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
@ -0,0 +1,26 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { ColorScheme } from '../prisma/color-scheme.enum';
|
||||
import * as Validator from 'class-validator';
|
||||
|
||||
@InputType()
|
||||
export class UserSettingsCreateWithoutUserInput {
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
id?: string;
|
||||
|
||||
@Field(() => ColorScheme, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
colorScheme?: keyof typeof ColorScheme;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
locale!: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
}
|
||||
Reference in New Issue
Block a user