-
Notifications
You must be signed in to change notification settings - Fork 96
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
Refactoring of the Sidebar component and its styling #138
Refactoring of the Sidebar component and its styling #138
Conversation
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.
nice job!
one more thing to go and we're there :)
thank you!
src/App.tsx
Outdated
@@ -1,6 +1,7 @@ | |||
import React, { useCallback, useEffect } from 'react' | |||
import 'antd/dist/antd.min.css' | |||
import './App.scss' | |||
import './pages/components/header/sidebar/sidebar.scss' |
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 move that import to the SideBar.tsx
file
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.
@NoamGaash
Sorry. My mistake. The mentioned import of sidebar.scss
is basically redundant inside App.tsx
because it is already imported as part of SideBar.tsx
. I removed the redundant one from the App.tsx
.
Also, I removed unused import of React 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.
@AlexKomanov thanks!
regarding React import, it is important:
you should import react to use tags in your tsx files
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.
Oh. Got it. Fixing my own created issue. :)
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.
the code looks great. let's merge it once all checks are passing
There is a warning about my branch to be out of date. Should I update my branch? Or it can be merged with its current state? |
it's completely fine - it can be merged :) |
Description
This PR contains several changes:
sideber-menu
to besidebar-menu-toggle
sidebar
was added, that contains a componenttsx
file and a correspondingscss
file.The functionality was tested manually and it has the same behavior like before the PR.
This PR closes #133