File tree Expand file tree Collapse file tree 2 files changed +4
-24
lines changed Expand file tree Collapse file tree 2 files changed +4
-24
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { toast } from 'react-toastify' ;
32
43import * as S from './styled' ;
54
65export const Navbar : React . FC = ( ) => (
76 < S . NavbarContainer >
87 < S . Nav to = { '/' } > Upload</ S . Nav >
9- < S . Nav
10- to = { '/' }
11- onClick = { ( ) => {
12- toast . success ( '์ ์์ค!' , {
13- autoClose : 1000 ,
14- position : toast . POSITION . BOTTOM_RIGHT ,
15- } ) ;
16- } }
17- >
18- API
19- </ S . Nav >
8+ < S . Nav to = { '/' } > API</ S . Nav >
209 < S . Nav to = { '/filelist' } > File list</ S . Nav >
2110 </ S . NavbarContainer >
2211) ;
Original file line number Diff line number Diff line change @@ -102,30 +102,21 @@ export const MainPage: React.FC = () => {
102102 < S . MainPageCheckBoxSection >
103103 < CheckBox
104104 click = { ( ) => {
105- setRetentionPeriod ( false ) ;
106- toast . success ( '์ ์์ค!' , {
107- autoClose : 1000 ,
108- position : toast . POSITION . BOTTOM_RIGHT ,
109- } ) ;
105+ setRetentionPeriod ( ! retentionPeriod ) ;
110106 } }
111107 isCheck = { retentionPeriod }
112108 label = { '์ ์ง๊ธฐ๊ฐ' }
113109 />
114110 < CheckBox
115- click = { ( ) => {
116- setDownloadCount ( false ) ;
117- toast . success ( '์ ์์ค!' , {
118- autoClose : 1000 ,
119- position : toast . POSITION . BOTTOM_RIGHT ,
120- } ) ;
121- } }
111+ click = { ( ) => setDownloadCount ( ! downloadCount ) }
122112 isCheck = { downloadCount }
123113 label = { '๋ค์ด๋ก๋ ํ์' }
124114 />
125115 < CheckBox
126116 click = { ( ) => {
127117 setPasswordBoolean ( ! passwordBoolean ) ;
128118 } }
119+ click = { ( ) => setPasswordBoolean ( ! passwordBoolean ) }
129120 isCheck = { passwordBoolean }
130121 label = { '๋น๋ฐ๋ฒํธ' }
131122 />
You canโt perform that action at this time.
0 commit comments