-
Notifications
You must be signed in to change notification settings - Fork 9
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/217-drep-directory-on-drawer #294
Conversation
7ae6457
to
2642c22
Compare
Please follow the PR template 💪 |
imageSRC?: string; | ||
imageWidth?: number; | ||
imageHeight?: number; | ||
title: string; | ||
isDrawer?: boolean; | ||
sx?: BoxProps["sx"]; |
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.
material UI has SxProps
pb={3} | ||
display="flex" | ||
flexDirection="column" | ||
height={"100%"} |
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.
can you delete {} if unnecessary
@@ -0,0 +1,161 @@ | |||
import { useEffect, useRef, useState } from "react"; |
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.
NewTopNav is unified top nav ?, if yes, can we replace everywhere ?
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.
So, I wanted both TopNav
and DashboardTopNav
to be sticky, so that we don't have to add top margin/padding equal to navbar height to content. A the same time I didn't want to make changes to all pages at the moment in order not to introduce regressions, so I only used it on the newly created pages. But the consequence is that the scroll is not on window any more, but on the parent div, so adding bg color and filter to NavBar
stopped working. NewTopNav
is mainly copied from TopNav
but adjusted for being sticky
I should have added a comment explaining this
import { NewTopNav } from "./NewTopNav"; | ||
import { theme } from "@/theme"; | ||
|
||
export type DashboardLayoutProps = PropsWithChildren |
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.
Is good idea to make that combo in this props ? :D
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.
/> | ||
<img src={ICONS.appLogoIcon} height={25} /> | ||
<IconButton | ||
data-testid={"close-drawer-button"} |
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.
Every string prop should be passed without curly braces
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 we need an eslint rule for that. Or even better add eslint-plugin-react
<Link | ||
{...navItem} | ||
isConnectWallet={isConnectButton} | ||
onClick={() => { |
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.
Do not pass conditional executions inside arrow function. Let's keep render tree clean 💪
2642c22
to
db03b82
Compare
a4082ad
to
5acb86d
Compare
1aacaed
to
36ee7c9
Compare
36ee7c9
to
a33177e
Compare
List of changes
Checklist