-
Notifications
You must be signed in to change notification settings - Fork 72
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
[454] add tests to components folder #481
Conversation
3beda58
to
70a9bdc
Compare
124d29e
to
3452f15
Compare
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.
Hey @cescoferraro great job man!
cursor: pointer; | ||
color: ${({isSelected = false}) => (isSelected ? '#61175E' : '#9AA3AB')}; | ||
color: ${({$isSelected = false}) => ($isSelected ? '#61175E' : '#9AA3AB')}; |
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.
what's the idea behind this?
selectedType: SupportedDiagrams; | ||
} | ||
|
||
const DiagramSwitcher: React.FC<IDiagramSwitcherProps> = ({onSearch, onTypeChange, selectedType}) => { | ||
const DiagramSwitcher: React.FC<IProps> = ({onSearch, onTypeChange, selectedType}) => { |
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 like big names but I'm open to move the props interface for each component to IProps 😄
</Menu.SubMenu> | ||
</S.NavMenu> | ||
<S.NavMenu | ||
selectedKeys={[pathname]} |
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 usually prefer components over jsons, maybe we can discuss what's the advantage/disadvantage
@@ -0,0 +1,14 @@ | |||
import {MenuInfo} from 'rc-menu/lib/interface'; |
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.
Just a small comment, you don't have to add the .tsx extension if the file doesn't explicitly use JSX
@@ -0,0 +1,15 @@ | |||
import {useCallback} from 'react'; | |||
import {useStore} from 'react-redux'; |
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.
This store is from the react-flow package not from react-redux
4005e81
to
a5cfd97
Compare
dbb558b
to
608ea41
Compare
This PR add tests to the components located at the components folder
Changes
Checklist