File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 66 Row ,
77 Badge ,
88 NavLink ,
9+ Button ,
910} from 'reactstrap' ;
1011import Toggle from 'react-toggle' ;
1112import ReactTooltip from 'react-tooltip' ;
@@ -132,6 +133,19 @@ const Table = () => {
132133 Hard: { difficultyCount . Hard } /{ totalDifficultyCount . Hard }
133134 </ span >
134135 </ Badge >
136+ < br />
137+ < Button
138+ className = "reset-button"
139+ outline
140+ size = "sm"
141+ color = "danger"
142+ onClick = { ( ) => {
143+ setDifficultyCount ( { Easy : 0 , Medium : 0 , Hard : 0 } ) ;
144+ setChecked ( [ ...checked ] . map ( ( ) => false ) ) ;
145+ } }
146+ >
147+ Reset
148+ </ Button >
135149 </ span >
136150 ) ;
137151 } ,
Original file line number Diff line number Diff line change 4040 .companies img {
4141 padding : 5px ;
4242 }
43-
43+
4444 .react-toggle {
4545 top : 7px ;
4646 }
47+
48+ .reset-button {
49+ margin-top : 10px ;
50+ font-size : 0.7rem ;
51+ }
4752}
You can’t perform that action at this time.
0 commit comments