-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat: veYFI gauges #56
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
apps/common/components/Input.tsx
Outdated
)} | ||
<div className={'relative flex w-full items-center justify-center'}> | ||
<input | ||
className={`h-10 w-full p-2 font-mono text-base font-normal outline-none ${error ? 'border border-solid border-[#EA5204] focus:border-[#EA5204]' : 'border-0 border-none'} ${disabled ? 'bg-neutral-300 text-neutral-600' : 'bg-neutral-0'}`} |
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 you know if there's a better way to handle these states rather than having all these ternary ops scattered around the className
string? Looks hard to read, if there would be a better way that would be great :)
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 have just been adding the dynamically selected classes at the end, but not sure if that is the normal convention with tailwind. Maybe @Majorfi knows best ?
👋 Gambito! Is this ready for re-review? |
@xgambitox we could close this, it was successfully merged with |
Closing in favor of #248 |
Description
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):