File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ const ACTIONS_COLUMN_WIDTH = 120;
6262 */
6363export default function FileManageModal ( props : FileManageModalProps ) {
6464 const { t} = I18Next . useTranslation ( ) ;
65+ const { token } = Antd . theme . useToken ( ) ;
6566 const [ modules , setModules ] = React . useState < Module [ ] > ( [ ] ) ;
6667 const [ newItemName , setNewItemName ] = React . useState ( '' ) ;
6768 const [ currentRecord , setCurrentRecord ] = React . useState < Module | null > ( null ) ;
@@ -407,7 +408,7 @@ export default function FileManageModal(props: FileManageModalProps) {
407408 >
408409 < div style = { {
409410 marginBottom : 16 ,
410- border : ' 1px solid #d9d9d9' ,
411+ border : ` 1px solid ${ token . colorBorder } ` ,
411412 borderRadius : '6px' ,
412413 padding : '12px' ,
413414 } } >
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ const CONTAINER_PADDING = '12px';
6767 */
6868export default function ProjectManageModal ( props : ProjectManageModalProps ) : React . JSX . Element {
6969 const { t} = I18Next . useTranslation ( ) ;
70+ const { token } = Antd . theme . useToken ( ) ;
7071 const [ allProjectNames , setAllProjectNames ] = React . useState < string [ ] > ( [ ] ) ;
7172 const [ allProjectRecords , setAllProjectRecords ] = React . useState < ProjectRecord [ ] > ( [ ] ) ;
7273 const [ newItemName , setNewItemName ] = React . useState ( '' ) ;
@@ -232,7 +233,7 @@ export default function ProjectManageModal(props: ProjectManageModalProps): Reac
232233 /** Creates the container style object. */
233234 const getContainerStyle = ( ) : React . CSSProperties => ( {
234235 marginBottom : ALERT_MARGIN_BOTTOM ,
235- border : ' 1px solid #d9d9d9' ,
236+ border : ` 1px solid ${ token . colorBorder } ` ,
236237 borderRadius : CONTAINER_BORDER_RADIUS ,
237238 padding : CONTAINER_PADDING ,
238239 } ) ;
You can’t perform that action at this time.
0 commit comments