Skip to content

Commit

Permalink
fix: build error ReferenceError: Blob is not defined (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnsonMao authored Jul 7, 2024
1 parent ca9e92d commit be32a73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pages/group/create/index.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import React, { useMemo } from 'react';
import dynamic from 'next/dynamic';
import { useRouter } from 'next/router';
import { useSnackbar } from '@/contexts/Snackbar';
import GroupForm from '@/components/Group/Form';
import useMutation from '@/hooks/useMutation';
import SEOConfig from '@/shared/components/SEO';
import Navigation from '@/shared/components/Navigation_v2';
import Footer from '@/shared/components/Footer_v2';

const GroupForm = dynamic(() => import('@/components/Group/Form'), {
ssr: false,
});

function CreateGroupPage() {
const { pushSnackbar } = useSnackbar();
const router = useRouter();
Expand Down
6 changes: 5 additions & 1 deletion pages/group/edit/index.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import React, { useEffect, useMemo } from 'react';
import dynamic from 'next/dynamic';
import { useSelector } from 'react-redux';
import { useRouter } from 'next/router';
import { Box, CircularProgress } from '@mui/material';
import GroupForm from '@/components/Group/Form';
import { useSnackbar } from '@/contexts/Snackbar';
import useFetch from '@/hooks/useFetch';
import useMutation from '@/hooks/useMutation';
import SEOConfig from '@/shared/components/SEO';
import Navigation from '@/shared/components/Navigation_v2';
import Footer from '@/shared/components/Footer_v2';

const GroupForm = dynamic(() => import('@/components/Group/Form'), {
ssr: false,
});

function EditGroupPage() {
const { pushSnackbar } = useSnackbar();
const router = useRouter();
Expand Down

0 comments on commit be32a73

Please sign in to comment.