-
Notifications
You must be signed in to change notification settings - Fork 0
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
WIP : new layout sections #697
WIP : new layout sections #697
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
<Translate token={"common:form.reset"} /> | ||
</Button> | ||
|
||
<Button size={"md"} variant={"secondary"} onClick={onSave}> | ||
<Translate token={"data:deepDive.filters.save"} /> | ||
<Translate token={"common:form.save"} /> |
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.
Could use the translate prop
shared/constants/router.ts
Outdated
contributors: "/data/contributors", | ||
projects: "/data/projects", | ||
overview: "/data/overview", |
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.
Add root
key? data.contributors.root
for example
if (dataViewTarget === "contributor") { | ||
router.push(`${NEXT_ROUTER.data.contributors}?${dateRangeType}${period}${series}${programAndEcosystemIds}`); | ||
} else { | ||
router.push(`${NEXT_ROUTER.data.projects}?${dateRangeType}${period}${series}${programAndEcosystemIds}`); | ||
} |
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.
if (dataViewTarget === "contributor") { | |
router.push(`${NEXT_ROUTER.data.contributors}?${dateRangeType}${period}${series}${programAndEcosystemIds}`); | |
} else { | |
router.push(`${NEXT_ROUTER.data.projects}?${dateRangeType}${period}${series}${programAndEcosystemIds}`); | |
} | |
router.push(`${dataViewTarget === "contributor" ? NEXT_ROUTER.data.contributors : NEXT_ROUTER.data.projects}?${dateRangeType}${period}${series}${programAndEcosystemIds}`); |
?
app/data/layout.tsx
Outdated
import { ProjectSidepanel } from "@/shared/panels/project-sidepanel/project-sidepanel"; | ||
import { Translate } from "@/shared/translation/components/translate/translate"; | ||
|
||
enum tabs { |
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 think enums should be capitalized, but then Tabs
conflicts with the component of the same name. I went with Views
for my enum ^^
…ct-table-contributor
No description provided.