Skip to content
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

Merged
merged 17 commits into from
Jul 18, 2024
Merged

added Language dropdown #123

merged 17 commits into from
Jul 18, 2024

Conversation

NancyAanchal
Copy link
Contributor

made a language dropdown to change the language of the flashcards in future
made the header match the mockups and a lil bit

Copy link

cloudflare-workers-and-pages bot commented Jul 18, 2024

Deploying nepalingo with  Cloudflare Pages  Cloudflare Pages

Latest commit: 25bd49d
Status: ✅  Deploy successful!
Preview URL: https://5b2c1937.nepalingo.pages.dev
Branch Preview URL: https://languagedropdown.nepalingo.pages.dev

View logs

"Newari": "newari",
"Tajpuriya": "tajpuriya",
"Maithili": "coming soon",
} as const
Copy link
Member

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?

Copy link
Member

@christikaes christikaes left a 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;
Copy link
Member

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?

Copy link
Collaborator

@SansCaar SansCaar left a 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.

@NancyAanchal NancyAanchal merged commit f61a69e into main Jul 18, 2024
2 checks passed
@NancyAanchal NancyAanchal deleted the languageDropdown branch July 18, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants