From 12beeee06724547756add616fb2274b534dc8243 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> Date: Fri, 4 Nov 2022 13:10:03 +0530 Subject: [PATCH] refactor: consistent layout imports (#48378) --- client/src/components/layouts/index.ts | 3 --- client/utils/gatsby/layout-selector.tsx | 6 ++---- 2 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 client/src/components/layouts/index.ts diff --git a/client/src/components/layouts/index.ts b/client/src/components/layouts/index.ts deleted file mode 100644 index 73d3ed4107e..00000000000 --- a/client/src/components/layouts/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { default as CertificationLayout } from './certification'; -export { default as DefaultLayout } from './default'; -export { default as LearnLayout } from './learn'; diff --git a/client/utils/gatsby/layout-selector.tsx b/client/utils/gatsby/layout-selector.tsx index cabfc35fe57..ac9f7df4beb 100644 --- a/client/utils/gatsby/layout-selector.tsx +++ b/client/utils/gatsby/layout-selector.tsx @@ -1,9 +1,7 @@ import React from 'react'; -import { - CertificationLayout, - DefaultLayout -} from '../../src/components/layouts'; +import CertificationLayout from '../../src/components/layouts/certification'; +import DefaultLayout from '../../src/components/layouts/default'; import FourOhFourPage from '../../src/pages/404'; import { isChallenge } from '../../src/utils/path-parsers';