Skip to content

Commit 478a433

Browse files
committed
fix: circular dependency 해소
1 parent fe36ce8 commit 478a433

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/common/src/components/dynamic_route.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ import { CircularProgress } from '@mui/material';
66
import { ErrorBoundary, Suspense } from '@suspensive/react';
77

88
import styled from '@emotion/styled';
9-
import Components from '../components';
109
import Hooks from "../hooks";
1110
import Schemas from "../schemas";
1211
import Utils from '../utils';
12+
import { ErrorFallback } from './error_handler';
13+
import { MDXRenderer } from './mdx';
1314

1415
const InitialPageStyle: React.CSSProperties = {
1516
width: '100%',
@@ -31,7 +32,7 @@ export const PageRenderer: React.FC<{ id: string }> = ({ id }) => {
3132
{
3233
data.sections.map(
3334
(s) => <div style={{ ...InitialSectionStyle, ...Utils.parseCss(s.css) }} key={s.id}>
34-
<Components.MDXRenderer text={s.body} />
35+
<MDXRenderer text={s.body} />
3536
</div>
3637
)
3738
}
@@ -71,7 +72,7 @@ const FullPage = styled.div`
7172
`
7273

7374
export const DynamicRoutePage: React.FC = () => <FullPage>
74-
<ErrorBoundary fallback={Components.ErrorFallback}>
75+
<ErrorBoundary fallback={ErrorFallback}>
7576
<Suspense fallback={<CircularProgress />}>
7677
<AsyncDynamicRoutePage />
7778
</Suspense>

0 commit comments

Comments
 (0)