diff --git a/package.json b/package.json index d84fc96..2a74ad2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "no-copy-frontend", - "version": "0.71.0", + "version": "0.72.0", "private": true, "scripts": { "dev": "next dev -p 2999", diff --git a/src/app/styles/pages-styles.scss b/src/app/styles/pages-styles.scss index b574651..210210a 100644 --- a/src/app/styles/pages-styles.scss +++ b/src/app/styles/pages-styles.scss @@ -4474,11 +4474,25 @@ font-size: 11px; font-weight: 600; white-space: nowrap; - margin-left: 10px; + margin-bottom: 5px; - &.new { - background: #fef2f2; - color: #dc2626; + &.new, + &.created { + background: v.$status-new; + } + + &.showed { + background-color: v.$b-color-1; + } + + &.legal_in_work, + &.complaint_in_work { + background: v.$status-in-work; + color: v.$white; + } + + &.authorized_use { + background: v.$authorized-use; } } @@ -4614,7 +4628,7 @@ } } -/* .btn-warning { + /* .btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; } diff --git a/src/app/styles/variable.scss b/src/app/styles/variable.scss index 3592b9f..a5b35d0 100644 --- a/src/app/styles/variable.scss +++ b/src/app/styles/variable.scss @@ -21,6 +21,11 @@ $color-video: #2f9e44; $color-audio: #1971c2; $color-document: #a561e6; +$status-new: #fab005; +$status-showed: #5a6e8a; +$status-in-work: #3b82f6; +$authorized-use: #2ecc71; + :root { --side-bar-width: 280px; diff --git a/src/app/ui/file-page/violation-table/file-page-violations-list.tsx b/src/app/ui/file-page/violation-table/file-page-violations-list.tsx index 6397749..cc30915 100644 --- a/src/app/ui/file-page/violation-table/file-page-violations-list.tsx +++ b/src/app/ui/file-page/violation-table/file-page-violations-list.tsx @@ -17,6 +17,7 @@ export default function FilePageViolationsList({ fileId: string }) { const t = useTranslations('Global'); + const tStatus = useTranslations('Match-status'); const router = useRouter(); const pathname = usePathname(); const [selectedViolation, setSelectedViolation] = useState(null); @@ -104,9 +105,20 @@ export default function FilePageViolationsList({
- - {item.status} - + {item.status === "COMPLAINT_AND_LEGAL_IN_WORK" ? ( + <> + + {t('legal_in_work')} + + + {t('complaint_in_work')} + + + ) : ( + + {tStatus(item.status)} + + )}