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