-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
I think some dependencies were not installed correctly(?) |
Yes, It should be fixable with |
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.
Some unused stuff I would prefer to be removed before merging, but really nice to have that for release two :-)
@@ -6,7 +6,6 @@ interface TopBarProps { | |||
/** | |||
* The toggle button value | |||
*/ | |||
isToggleOn: React.Dispatch<React.SetStateAction<boolean>>; |
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.
You can remove the whole props
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.
okay :)
<div className="toggle-container"> | ||
<div className="toggle-label"> | ||
<span className="toggle-text">Map mode</span> | ||
<label className="toggle-switch"> | ||
<input type="checkbox" onChange={handleToggleMiddleArea} /> | ||
<span className="slider"></span> | ||
</label> | ||
<span className="toggle-text">Road mode</span> |
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.
Could you remove the unused classes from the css files?
@@ -62,26 +61,29 @@ const RoadDetails = () => { | |||
}, []); | |||
|
|||
return ( | |||
<div> | |||
<TopBar isToggleOn={setShowRoadImageMode} /> | |||
<div className="div-mapAndRoad-container"> |
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 the class div-mapAndRoad-container exists in the css 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.
I added it only so when I did the inspect on the page I could recognise the div
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.
should I remove the className?
created split component in inspect page, with map, road surface image and graph