Skip to content

Commit

Permalink
chore(Page): dynamic load for GoalPreview
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Aug 8, 2023
1 parent 2ce55d8 commit ec17a2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/GoalPreview/GoalPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -421,3 +421,5 @@ export const GoalPreview: FC = () => {
/>
));
};

export default GoalPreview;
2 changes: 1 addition & 1 deletion src/components/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import { GlobalStyle } from './GlobalStyle';
import { PageHeader } from './PageHeader/PageHeader';
import { PageFooter } from './PageFooter/PageFooter';
import { ModalContext } from './ModalOnEvent';
import { GoalPreview } from './GoalPreview/GoalPreview';

const GoalPreview = dynamic(() => import('./GoalPreview/GoalPreview'));
const ModalOnEvent = dynamic(() => import('./ModalOnEvent'));
const ProjectCreateForm = dynamic(() => import('./ProjectCreateForm/ProjectCreateForm'));
const GoalCreateForm = dynamic(() => import('./GoalCreateForm/GoalCreateForm'));
Expand Down

0 comments on commit ec17a2f

Please sign in to comment.