forked from nextstrain/nextstrain.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pages can define which columns are rendered
This commit creates a more flexible react pattern that allows pages (e.g. /influenza, /sars-cov-2) to decide which columns are rendered, as well as how they look (e.g. logo, mobile text, links etc). In turn, this will give us the ability for different pages to use different dataset structures and display bespoke information in the table. Currently the number of columns must be 2 or 3, and the 3rd will not be rendered for small screen sizes. This could be improved in future as needs arise. Based on work by @eharkins in PR nextstrain#289 Co-authored-by: eharkins <eli.harkins@gmail.com>
- Loading branch information
1 parent
97925b6
commit eb82874
Showing
4 changed files
with
171 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters