diff --git a/src/app/[locale]/pages/marking-audio/page.tsx b/src/app/[locale]/pages/marking-audio/page.tsx index 02a3364..ad46029 100644 --- a/src/app/[locale]/pages/marking-audio/page.tsx +++ b/src/app/[locale]/pages/marking-audio/page.tsx @@ -1,7 +1,7 @@ import ProtectionSummary from '@/app/ui/marking-page/protection-summary'; import FilesTable from '@/app/ui/dashboard/files-table'; import PageTitle from '@/app/ui/page-title'; -import UploadSectionFile from '@/app/components/upload-section-file'; +import UploadSectionFile from '@/app/components/UploadSectionFile'; import { getAllowedFilesExtensions } from '@/app/actions/fileUpload'; import { StackedBarChart } from '@/app/components/StackedBarChart'; import PageTitleColorFrame from '@/app/ui/page-title-color-frame'; diff --git a/src/app/[locale]/pages/marking-images/page.tsx b/src/app/[locale]/pages/marking-images/page.tsx index 963960e..9eba8da 100644 --- a/src/app/[locale]/pages/marking-images/page.tsx +++ b/src/app/[locale]/pages/marking-images/page.tsx @@ -1,5 +1,5 @@ import FilesTable from '@/app/ui/dashboard/files-table'; -import UploadSectionFile from '@/app/components/upload-section-file'; +import UploadSectionFile from '@/app/components/UploadSectionFile'; import { getAllowedFilesExtensions } from '@/app/actions/fileUpload'; import PageTitleColorFrame from '@/app/ui/page-title-color-frame'; import ProtectionStatistic from '@/app/ui/marking-page/new/protection-statistic'; diff --git a/src/app/[locale]/pages/marking-video/page.tsx b/src/app/[locale]/pages/marking-video/page.tsx index 8ee95b9..e2968f3 100644 --- a/src/app/[locale]/pages/marking-video/page.tsx +++ b/src/app/[locale]/pages/marking-video/page.tsx @@ -1,7 +1,7 @@ import ProtectionSummary from '@/app/ui/marking-page/protection-summary'; import FilesTable from '@/app/ui/dashboard/files-table'; import PageTitle from '@/app/ui/page-title'; -import UploadSectionFile from '@/app/components/upload-section-file'; +import UploadSectionFile from '@/app/components/UploadSectionFile'; import { getAllowedFilesExtensions } from '@/app/actions/fileUpload'; import { StackedBarChart } from '@/app/components/StackedBarChart'; import PageTitleColorFrame from '@/app/ui/page-title-color-frame'; diff --git a/src/app/components/upload-section-file.tsx b/src/app/components/UploadSectionFile.tsx similarity index 99% rename from src/app/components/upload-section-file.tsx rename to src/app/components/UploadSectionFile.tsx index 3918634..af37ccb 100644 --- a/src/app/components/upload-section-file.tsx +++ b/src/app/components/UploadSectionFile.tsx @@ -253,6 +253,7 @@ export default function UploadSectionFile({ fileType, allowedExtensions, maxFile setIsFileUploaded(true); await queryClient.invalidateQueries({ queryKey: ['userFilesData'] }); await queryClient.invalidateQueries({ queryKey: ['userFilesInfo'] }); + await queryClient.invalidateQueries({ queryKey: ['userData'] }); } else { throw new Error('Not all chunks were uploaded'); } diff --git a/src/app/components/tanstakTable.tsx b/src/app/components/tanstakTable.tsx index 4c3d7ac..b89f9b2 100644 --- a/src/app/components/tanstakTable.tsx +++ b/src/app/components/tanstakTable.tsx @@ -13,10 +13,10 @@ import { } from '@tanstack/react-table'; import { IconEye, IconDoubleArrowRight, IconArrowRight, IconDoubleArrowLeft, IconArrowLeft, IconArrowUp, IconArrowDown, IconFilter, IconFileDownload, IconShieldExclamation } from '@/app/ui/icons/icons'; import { useTranslations, useLocale } from 'next-intl'; -import DropDownList from '@/app/components/dropDownList'; +import DropDownList from '@/app/components/DropDownList'; import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; import { getUserFilesData, removeUserFile, viewFileInfo } from '@/app/actions/fileEntity'; -import ModalWindow from '@/app/components/modalWindow'; +import ModalWindow from '@/app/components/ModalWindow'; import { toast } from 'sonner'; import { pluralize } from '@/app/lib/pluralize'; import { convertBytes } from '@/app/lib/convertBytes'; diff --git a/src/app/ui/dashboard/files-table.tsx b/src/app/ui/dashboard/files-table.tsx index c1c82f6..a1185cf 100644 --- a/src/app/ui/dashboard/files-table.tsx +++ b/src/app/ui/dashboard/files-table.tsx @@ -1,4 +1,4 @@ -import TanstakFilesTable from '@/app/components/tanstakTable'; +import TanstakFilesTable from '@/app/components/TanstakTable'; type FilesTable = { fileType: string diff --git a/src/app/ui/payment/payment-tab-tariffs.tsx b/src/app/ui/payment/payment-tab-tariffs.tsx index aaa9fba..1553d0a 100644 --- a/src/app/ui/payment/payment-tab-tariffs.tsx +++ b/src/app/ui/payment/payment-tab-tariffs.tsx @@ -3,6 +3,7 @@ import { getUserData } from '@/app/actions/action'; import { useQuery } from '@tanstack/react-query'; import { convertBytes } from '@/app/lib/convertBytes'; +import { useTranslations } from 'next-intl'; export default function PaymentTabTariffs() { const { @@ -17,6 +18,8 @@ export default function PaymentTabTariffs() { } }); + const t = useTranslations('Global'); + return (
@@ -46,7 +49,9 @@ export default function PaymentTabTariffs() {
🚀

- {item.name} + { + t.has(item.name) ? t(item.name) : item.name + }

{item.price} diff --git a/src/app/ui/search/searched-user-files-list.tsx b/src/app/ui/search/searched-user-files-list.tsx index 5a9b8da..9fb64bb 100644 --- a/src/app/ui/search/searched-user-files-list.tsx +++ b/src/app/ui/search/searched-user-files-list.tsx @@ -2,7 +2,7 @@ import { convertBytes } from '@/app/lib/convertBytes'; import { toast } from 'sonner'; import { useState, ReactNode } from 'react'; import { useTranslations } from 'next-intl'; -import ModalWindow from '@/app/components/modalWindow'; +import ModalWindow from '@/app/components/ModalWindow'; import { IconEye, IconDownload } from '@/app/ui/icons/icons'; export function SearchedUserFilesList({ list }: { list: any }) {