change collor for not my file button
This commit is contained in:
@@ -15,6 +15,8 @@ $white: #fff;
|
|||||||
$black: #000;
|
$black: #000;
|
||||||
$red: #dc2626;
|
$red: #dc2626;
|
||||||
$green: #00a63e;
|
$green: #00a63e;
|
||||||
|
$green-2: #10b981;
|
||||||
|
$grey: #5a6e8a;
|
||||||
$p-color-disabled: #6365f18e;
|
$p-color-disabled: #6365f18e;
|
||||||
$s-color-disabled: #8a5cf663;
|
$s-color-disabled: #8a5cf663;
|
||||||
$border-color-1: #e2e8f0;
|
$border-color-1: #e2e8f0;
|
||||||
|
|||||||
@@ -379,18 +379,27 @@
|
|||||||
|
|
||||||
.btn-resolve {
|
.btn-resolve {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
color: #10b981;
|
color: v.$green-2;
|
||||||
border: 2px solid #10b981;
|
border: 2px solid v.$green-2;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
/* transform: translateY(-2px);
|
background: v.$green-2;
|
||||||
box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4); */
|
|
||||||
background: #10b981;
|
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-no-my-file {
|
||||||
|
white-space: nowrap;
|
||||||
|
color: v.$grey;
|
||||||
|
border: 2px solid v.$grey;
|
||||||
|
font-weight: 700;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: v.$grey;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.violation-info {
|
.violation-info {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|||||||
@@ -64,6 +64,10 @@ export default function FilePageViolationInfo(
|
|||||||
}
|
}
|
||||||
queryClient.invalidateQueries({ queryKey: ['fileViolations'] });
|
queryClient.invalidateQueries({ queryKey: ['fileViolations'] });
|
||||||
queryClient.invalidateQueries({ queryKey: ['complainInfo', id] });
|
queryClient.invalidateQueries({ queryKey: ['complainInfo', id] });
|
||||||
|
queryClient.invalidateQueries({ queryKey: ['violationData'] });
|
||||||
|
queryClient.invalidateQueries({ queryKey: ['lastCases'] });
|
||||||
|
queryClient.invalidateQueries({ queryKey: ['lastComplaints'] });
|
||||||
|
|
||||||
|
|
||||||
if (status === 'NOT_OWNER_FILE') {
|
if (status === 'NOT_OWNER_FILE') {
|
||||||
console.log('NOT_OWNER_FILE');
|
console.log('NOT_OWNER_FILE');
|
||||||
@@ -330,7 +334,7 @@ export default function FilePageViolationInfo(
|
|||||||
className="violation-info-action"
|
className="violation-info-action"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
className="btn-s btn-resolve"
|
className="btn-s btn-no-my-file"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (selectedViolation?.id) {
|
if (selectedViolation?.id) {
|
||||||
updateStatusHandler(selectedViolation.id, 'NOT_OWNER_FILE');
|
updateStatusHandler(selectedViolation.id, 'NOT_OWNER_FILE');
|
||||||
|
|||||||
Reference in New Issue
Block a user