change styles

This commit is contained in:
smanylov
2026-04-06 13:37:56 +07:00
parent b377c11c41
commit f688aa210f
4 changed files with 18 additions and 20 deletions
+2 -5
View File
@@ -51,19 +51,16 @@ export async function getUserFilesData({
if (response.ok) {
let parsed = await response.json();
/* console.log(parsed); */
if (parsed.message_code === 0) {
return parsed.message_body;
} else {
throw new Error(parsed.message_text || 'API error');
throw parsed.message_text ? parsed.message_text : 'error';
}
} else {
throw new Error(`${response.status}`);
throw `${response.status}`;
}
} catch (error) {
console.error('getUserFilesData error:', error);
return error;
}
}
+12 -11
View File
@@ -5238,10 +5238,15 @@
&-info {
display: flex;
width: 100%;
max-width: 400px;
/* max-width: 400px; */
color: v.$text-s;
align-items: center;
position: relative;
&:hover {
background: #e2e4e6;
border-radius: 14px;
}
}
&-type {
@@ -5294,10 +5299,6 @@
margin-bottom: 0;
}
&:hover {
background: #e2e4e6;
}
input {
background: v.$white;
padding: 5px 10px;
@@ -5314,15 +5315,15 @@
&-empty {
.empty-card-title {
font-size: 14px;
color: #64748b;
font-size: 16px;
color: v.$text-p;
font-weight: 500;
}
.empty-card-text {
font-size: 12px;
color: #9ca3af;
margin-top: 4px;
font-size: 14px;
color: v.$text-m;
}
}
@@ -5331,8 +5332,8 @@
padding: 12px 16px;
background: #fafafa;
border-radius: 10px;
font-size: 11px;
color: #9ca3af;
font-size: 14px;
color: v.$text-m;
line-height: 1.6;
}
}
+1 -1
View File
@@ -113,7 +113,7 @@ export default function NotificationsButton() {
{notificationList?.unreadCount ? notificationList?.unreadCount : t('no-new')} / {t('all')}
</Link>
</div>
{notificationList?.notifications.length !== 0 ? (
{notificationList?.notifications?.length !== 0 ? (
<>
<div
className="notification-list"
+3 -3
View File
@@ -30,7 +30,7 @@ export default function PaymentUserCards() {
if (response) {
await queryClient.invalidateQueries({ queryKey: ['paymentsMethods'] });
toast.success('bank-card-has-been-successfully-deleted');
toast.success(t('bank-card-has-been-successfully-deleted'));
} else {
throw 'error'
}
@@ -55,7 +55,7 @@ export default function PaymentUserCards() {
className="card-item-confirm-action"
>
<button
className="btn btn-secondary"
className="btn btn-primary"
onClick={() => {
setSelectedCard(null);
setOpenWindow(false);
@@ -75,7 +75,7 @@ export default function PaymentUserCards() {
)}
</button>
<button
className="btn btn-secondary"
className="btn btn-primary"
onClick={() => {
if (selectedCard?.paymentMethodId) {
removeCardHandler(selectedCard?.paymentMethodId)