diff --git a/src/app/actions/fileEntity.ts b/src/app/actions/fileEntity.ts index 5c894de..c5ccf6f 100644 --- a/src/app/actions/fileEntity.ts +++ b/src/app/actions/fileEntity.ts @@ -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; } } diff --git a/src/app/styles/pages-styles.scss b/src/app/styles/pages-styles.scss index e3ad147..40395be 100644 --- a/src/app/styles/pages-styles.scss +++ b/src/app/styles/pages-styles.scss @@ -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; } } diff --git a/src/app/ui/header/notificationsButton.tsx b/src/app/ui/header/notificationsButton.tsx index d2cbeba..725ae2d 100644 --- a/src/app/ui/header/notificationsButton.tsx +++ b/src/app/ui/header/notificationsButton.tsx @@ -113,7 +113,7 @@ export default function NotificationsButton() { {notificationList?.unreadCount ? notificationList?.unreadCount : t('no-new')} / {t('all')} - {notificationList?.notifications.length !== 0 ? ( + {notificationList?.notifications?.length !== 0 ? ( <>