Skip to content

Commit

Permalink
refactor: remove highlight tag
Browse files Browse the repository at this point in the history
Signed-off-by: Yi-Ya Chen <[email protected]>
  • Loading branch information
houhoucoop committed Nov 27, 2024
1 parent dd0352a commit 951bafa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
9 changes: 3 additions & 6 deletions src/routes/backup/BackupList.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import PropTypes from 'prop-types'
import { Table, Modal, Icon, message, Tooltip, Progress, Input, Button, Tag } from 'antd'
import { Table, Modal, Icon, message, Tooltip, Progress, Input, Button } from 'antd'
import { CopyToClipboard } from 'react-copy-to-clipboard'
import { DropOption } from '../../components'
import { formatDate } from '../../utils/formatDate'
Expand Down Expand Up @@ -185,11 +185,8 @@ class List extends React.Component {
sorter: (a, b) => sortTable(a, b, 'backupMode'),
render: (text) => {
return (
<div className={style.backupMode}>
{ text === 'full'
? <Tag className={style.fullTag}>{text}</Tag>
: <Tag>{text || 'incremental'}</Tag>
}
<div>
{text || 'incremental'}
</div>
)
},
Expand Down
12 changes: 0 additions & 12 deletions src/routes/backup/backupList.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,3 @@
text-overflow:ellipsis;
}
}

.backupMode {
:global {
.ant-tag {
border: 0;
}
}

.fullTag {
background: #e6f7ff;
}
}

0 comments on commit 951bafa

Please sign in to comment.