-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added Language dropdown #123
Conversation
Deploying nepalingo with Cloudflare Pages
|
"Newari": "newari", | ||
"Tajpuriya": "tajpuriya", | ||
"Maithili": "coming soon", | ||
} as const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not just make it a string? this object type seems a bit redundant. Why is as const
needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good! small comments and I haven't had a chance to test. If someone else can test and approve this can get merged
|
||
|
||
type LanguageContextProps = { | ||
selectedLanguage: string | null | undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need both null
and undefined
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everythings looks good to me.
made a language dropdown to change the language of the flashcards in future
made the header match the mockups and a lil bit