From e627e9a4ebc908bb9b9d63d9b15a9fe3d78c2e93 Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Fri, 6 May 2022 23:06:28 +0800 Subject: [PATCH] refactor(console): align with new mdx content from docs (#747) --- packages/console/package.json | 3 ++- packages/console/src/pages/Guide/index.module.scss | 4 ---- packages/console/src/pages/Guide/index.tsx | 7 +++---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/packages/console/package.json b/packages/console/package.json index 39ab8c103..8836997b0 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -74,7 +74,8 @@ }, "alias": { "@/*": "./src/$1", - "@theme/*": "./src/mdx-components/$1" + "@theme/*": "./src/mdx-components/$1", + "@components/*": "./src/pages/Guide/components/$1" }, "eslintConfig": { "extends": "@silverhand/react" diff --git a/packages/console/src/pages/Guide/index.module.scss b/packages/console/src/pages/Guide/index.module.scss index 9537a41d7..198e301c7 100644 --- a/packages/console/src/pages/Guide/index.module.scss +++ b/packages/console/src/pages/Guide/index.module.scss @@ -39,10 +39,6 @@ .banner { margin-bottom: _.unit(6); } - - h1 { - display: none; - } } } diff --git a/packages/console/src/pages/Guide/index.tsx b/packages/console/src/pages/Guide/index.tsx index e1b9c4dfe..67a7746be 100644 --- a/packages/console/src/pages/Guide/index.tsx +++ b/packages/console/src/pages/Guide/index.tsx @@ -23,8 +23,6 @@ import Spacer from '@/components/Spacer'; import Close from '@/icons/Close'; import { GuideForm } from '@/types/guide'; -import MultiTextInputField from './components/MultiTextInputField'; -import Step from './components/Step'; import * as styles from './index.module.scss'; const Guides: Record JSX.Element>> = { @@ -121,8 +119,9 @@ const Guide = ({ return ; }, - MultiTextInputField, - Step, + hr: () => null, + h1: () => null, + h2: () => null, }} > Loading...}>