-
Notifications
You must be signed in to change notification settings - Fork 48
refactor(web): align-debug-component-content #1356
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
Conversation
✅ Deploy Preview for kleros-v2 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -54,7 +59,7 @@ const Phase = () => { | |||
const { data: phase } = useSortitionModulePhase({ | |||
watch: true, | |||
}); | |||
return <>{phase !== undefined && <label>Phase: {Phases[phase]}</label>}</>; | |||
return <>{phase !== undefined && <StyledLabel>Phase: {Phases[phase]}</StyledLabel>}</>; |
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.
Lately I have been trying to use the following syntax for this situations:
return <>{phase !== undefined && <StyledLabel>Phase: {Phases[phase]}</StyledLabel>}</>; | |
return (phase !== undefined ? <StyledLabel>Phase: {Phases[phase]}</StyledLabel> : null); |
(also, try using the isUndefined
function from utils/index.ts
)
|
Code Climate has analyzed commit 27e7fd2 and detected 0 issues on this pull request. View more on Code Climate. |
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.
lgtm
PR-Codex overview
This PR focuses on improving the styling and adding conditional rendering in the Debug component.
Detailed summary