-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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(browsev2): styling updates and select platform #8428
feat(browsev2): styling updates and select platform #8428
Conversation
@@ -45,12 +45,14 @@ const SearchBody = styled.div` | |||
overflow: auto; | |||
`; | |||
|
|||
const ResultContainer = styled.div<{ displayUpdatedStyles: boolean }>` | |||
const ResultContainer = styled.div<{ v2Styles: boolean }>` |
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.
nice change!
if (count) toggle(); | ||
}; | ||
|
||
const onClickHeader = () => { | ||
const isNowSelected = !isPlatformSelectedExact; |
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.
this variable name is hard to follow... isNowSelected is the opposite of whether the platform alone is selected?
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.
Eg. is what now selected?
const isPlatformSelected = useIsPlatformSelected(); | ||
const hasBrowseFilter = useHasFilterField(BROWSE_PATH_V2_FILTER_NAME); | ||
const isPlatformSelectedPrefix = isPlatformSelected && hasBrowseFilter; | ||
const isPlatformSelectedExact = isPlatformSelected && !hasBrowseFilter; |
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.
isPlatformOnlySelected?
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.
Good suggestion!
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.
Overall I think logic LGTM. Minor comments around the naming stuff!
Nice work, Josh!
Changes
Checklist