Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[ENHANCEMENT] Polish the dark mode; Overhaul submit form; Fix dark mode skeleton components; #67
[ENHANCEMENT] Polish the dark mode; Overhaul submit form; Fix dark mode skeleton components; #67
Changes from 22 commits
e9a320a
afa1350
17f652c
75c4c2c
583eb97
a5f779b
955d2d0
286a6a7
ea05ef3
fe49972
cd40261
62088b1
4f5f5b9
842ecf7
2612958
ce2f99a
6efdfd1
89fb796
9f5a0d3
2fe4e5f
a227346
758448d
56c7b8f
28ac078
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Can we say
String
instead ofany
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.
Ah, I forgot about that cheeky
any
while I was trying something out. Apologies, and thanks for pointing that out.To answer your concern, I'm afraid we can't change that to a simple
string
type to the object that has the categories as their keys . We'll have to define a type something like:This seems redundant to me. We'll have to keep editing the type if we wish to change the categories.
Let's figure out a different way for this.
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.
Oops I almost missed the key value pairs.
Can we use something like this
const categoryColors = new Map<string, string>([["travel", "classes"], ["mountains","classes"]])
we would have to then stringify the category when 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.
Aargh, okay! :P
I have an idea based on this.
I'll have to put this on hold for another day (back to draft PR).
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.
Sure 😂, just one thing shall we do string, string or any other plans you have got?