-
Notifications
You must be signed in to change notification settings - Fork 1
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
refactor: Header component #257
Conversation
|
Coverage Report
File CoverageNo changed files found. |
src/assets/AICS-logo-and-name.svg
Outdated
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.
Edited the SVG's title attribute to say "Allen Institute for Cell Science"
src/Viewer.module.css
Outdated
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.
Moved to Header.tsx
the preview doesn't load the dataset (I get an error) is that expected? |
Design feedback: it seems weird to have the help be a dropdown that only has one item. is that because you plan to have more in that dropdown in the future? |
It should be loading... Are you on VPN? |
src/components/Header/index.tsx
Outdated
import Header from "./Header"; | ||
import HeaderLogo from "./HeaderLogo"; | ||
|
||
export { Header, HeaderLogo }; |
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.
Might be easier to just put the logo inside the header in the first place? I don't think there's a scenario where Header
would be used and HeaderLogo
wouldn't be the immediate first child. Then this module could be one file instead of three (for now).
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 was worried that this wouldn't work but was pleasantly surprised when it did. Thank you for the 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.
Looks good!
Problem
Refactors the header into a reusable series of components as part of #250.
Estimated review size: small, <15 minutes. (Recommend turning off whitespace)
Solution
Header.tsx
component file, which pages can reuse.Type of change
Steps to Verify:
Screenshots (optional):