return marking-document pag for d2c
This commit is contained in:
@@ -3,26 +3,11 @@ 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';
|
||||
import { fetchReferralUserStats } from '@/app/actions/referralsActions';
|
||||
import { getQueryClient } from '@/app/providers/getQueryClient';
|
||||
|
||||
export default async function Page() {
|
||||
const FILE_TYPE = "document";
|
||||
const { file_extension, max_file_size } = await getAllowedFilesExtensions(FILE_TYPE);
|
||||
|
||||
const queryClient = getQueryClient();
|
||||
|
||||
try {
|
||||
const data = await queryClient.fetchQuery({
|
||||
queryKey: ['referralUserStats'],
|
||||
queryFn: fetchReferralUserStats,
|
||||
});
|
||||
if (data?.referralLink) {
|
||||
return null;
|
||||
}
|
||||
} catch (error) {
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<PageTitleColorFrame
|
||||
|
||||
Reference in New Issue
Block a user