-
Notifications
You must be signed in to change notification settings - Fork 51
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
fix sidebar English language #286
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
components/Header/Sidebar.tsx
Outdated
const { theme } = useTheme(); | ||
const t = useTranslations('Components.sideBar'); | ||
const navigationItems: NavigationItems[] = [ |
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.
in this scope this array will be re declared on every render
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 know, but how can I use the "useTranslations" hook outside this scope?
`fixed inset-y-0 z-50 bg-lightBg dark:bg-darkBg border-l | ||
border-l-blue-400 w-[75%] shadow-lg transform transition-transform | ||
ease-in-out duration-300`, | ||
{ |
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 we not use dir here?
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.
It didn't worked so well using dir
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.
please address review.
@noams24 please resolve conflicts |
@noams24 please update |
I still couldn't figured how to fix this error: Maybe @Tamir198 knows how solve it? |
Issue #271