From 3bc045e84a7ec6c67fda9b2941a598cdd6d3c48a Mon Sep 17 00:00:00 2001 From: Yi SoJeong Date: Sun, 20 Dec 2020 21:22:04 +0900 Subject: [PATCH] =?UTF-8?q?[#158]=20feat:=20=EC=95=A0=EB=8B=88=EB=A9=94?= =?UTF-8?q?=EC=9D=B4=EC=85=98=20=EB=AF=B8=EA=B5=AC=ED=98=84=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=B4=EB=A5=98=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/molecules/BlockModal/BlockModal.tsx | 4 ---- frontend/src/hooks/useCommand.tsx | 1 - frontend/src/schemes.ts | 1 - frontend/src/utils/blockContent.tsx | 7 ------- 4 files changed, 13 deletions(-) diff --git a/frontend/src/components/molecules/BlockModal/BlockModal.tsx b/frontend/src/components/molecules/BlockModal/BlockModal.tsx index 3ea4e7c..898e4da 100644 --- a/frontend/src/components/molecules/BlockModal/BlockModal.tsx +++ b/frontend/src/components/molecules/BlockModal/BlockModal.tsx @@ -14,7 +14,6 @@ import H2Img from '@assets/heading2.png'; import H3Img from '@assets/heading3.png'; import BulletedListImg from '@assets/bulletedList.png'; import NumberedListImg from '@assets/numberedList.png'; -import ToggleListImg from '@assets/toggledList.png'; import QuoteImg from '@assets/quote.png'; const fadein = keyframes` @@ -84,7 +83,6 @@ const typeName: { [key: string]: string } = { heading3: 'Heading3', bulletedlist: 'Bulleted list', numberedlist: 'Numbered list', - togglelist: 'Toggle list', quote: 'Quote', }; @@ -95,7 +93,6 @@ const typeObj: { [key: string]: string } = { heading3: 'Small section heading.', bulletedlist: 'Create a simple bulleted list.', numberedlist: 'Create a list with numbering.', - togglelist: 'Toggles can hide and show content inside.', quote: 'Capture a quote.', }; @@ -106,7 +103,6 @@ const typeImg: { [key: string]: any } = { heading3: H3Img, bulletedlist: BulletedListImg, numberedlist: NumberedListImg, - togglelist: ToggleListImg, quote: QuoteImg, }; diff --git a/frontend/src/hooks/useCommand.tsx b/frontend/src/hooks/useCommand.tsx index 599551f..ce9c9fd 100644 --- a/frontend/src/hooks/useCommand.tsx +++ b/frontend/src/hooks/useCommand.tsx @@ -68,7 +68,6 @@ const useCommand = () => { const type = [ BlockType.NUMBERED_LIST, BlockType.BULLETED_LIST, - BlockType.TOGGLE_LIST, ].includes(block.type) ? block.type : BlockType.TEXT; diff --git a/frontend/src/schemes.ts b/frontend/src/schemes.ts index c3bda35..31097ee 100644 --- a/frontend/src/schemes.ts +++ b/frontend/src/schemes.ts @@ -7,7 +7,6 @@ export enum BlockType { HEADING3 = 'heading3', BULLETED_LIST = 'bulletedlist', NUMBERED_LIST = 'numberedlist', - TOGGLE_LIST = 'togglelist', QUOTE = 'quote', PAGE = 'page', } diff --git a/frontend/src/utils/blockContent.tsx b/frontend/src/utils/blockContent.tsx index 9259788..524806b 100644 --- a/frontend/src/utils/blockContent.tsx +++ b/frontend/src/utils/blockContent.tsx @@ -3,7 +3,6 @@ import { jsx, css } from '@emotion/react'; import { Block, BlockType } from '@/schemes'; -import { ReactComponent as Toggle } from '@assets/toggle-default.svg'; export const regexType: { [key: string]: RegExp } = { heading1: /^#/gm, @@ -11,7 +10,6 @@ export const regexType: { [key: string]: RegExp } = { heading3: /^###/gm, bulletedlist: /^[-,+]/gm, numberedlist: /^\d+\./gm, - togglelist: /^>/gm, quote: /^\|/gm, }; @@ -40,11 +38,6 @@ export const listBlockType = (block: Block, idx: number) => { export const listComponent: { [key: string]: any } = { bulletedlist:
, - togglelist: ( -
- -
- ), quote:
, };