-
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
Feature: Button that allows the user to switch the side where the sidebar is displayed #340
base: develop
Are you sure you want to change the base?
Conversation
…ebar is displayed
✅ Deploy Preview for tts-fe-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
<button | ||
onClick={toggleSidebarPosition} | ||
className="hidden md:inline-flex items-center justify-center w-8 h-8 bg-primary text-white rounded hover:text-opacity-75" | ||
> | ||
<ArrowsRightLeftIcon className='h-4 w-4' /> | ||
</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.
I don't think the button to switch sides should be here on the navbar because not all pages have the sidebar and it looks weird for the about page and the FAQ page to have such button.
Can you move it to some place inside the sidebar? For example, near the download button or on the bottom of the sidebar.
</SentryRoutes> | ||
</CombinedProvider> | ||
</BrowserRouter> | ||
<SidebarProvider> |
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 the same light as the previous comment, since the sidebar button to change sides should not be global, it does not really make sense to render the SidebarProvider
here.
It should be inside the TimeTableScheduler.tsx
page
Closes #203
Added a button besides the DarkModeSwitch button that changes the side of the sidebar from the right to the left and vice-versa.