Skip to content

Commit

Permalink
Merge pull request #159 from boostcamp-2020/feat/158
Browse files Browse the repository at this point in the history
토글리스트 보류 처리
  • Loading branch information
YiSoJeong authored Dec 20, 2020
2 parents a8f6a96 + 3bc045e commit 224c641
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 13 deletions.
4 changes: 0 additions & 4 deletions frontend/src/components/molecules/BlockModal/BlockModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -84,7 +83,6 @@ const typeName: { [key: string]: string } = {
heading3: 'Heading3',
bulletedlist: 'Bulleted list',
numberedlist: 'Numbered list',
togglelist: 'Toggle list',
quote: 'Quote',
};

Expand All @@ -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.',
};

Expand All @@ -106,7 +103,6 @@ const typeImg: { [key: string]: any } = {
heading3: H3Img,
bulletedlist: BulletedListImg,
numberedlist: NumberedListImg,
togglelist: ToggleListImg,
quote: QuoteImg,
};

Expand Down
1 change: 0 additions & 1 deletion frontend/src/hooks/useCommand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ const useCommand = () => {
const type = [
BlockType.NUMBERED_LIST,
BlockType.BULLETED_LIST,
BlockType.TOGGLE_LIST,
].includes(block.type)
? block.type
: BlockType.TEXT;
Expand Down
1 change: 0 additions & 1 deletion frontend/src/schemes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export enum BlockType {
HEADING3 = 'heading3',
BULLETED_LIST = 'bulletedlist',
NUMBERED_LIST = 'numberedlist',
TOGGLE_LIST = 'togglelist',
QUOTE = 'quote',
PAGE = 'page',
}
Expand Down
7 changes: 0 additions & 7 deletions frontend/src/utils/blockContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
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,
heading2: /^##/gm,
heading3: /^###/gm,
bulletedlist: /^[-,+]/gm,
numberedlist: /^\d+\./gm,
togglelist: /^>/gm,
quote: /^\|/gm,
};

Expand Down Expand Up @@ -40,11 +38,6 @@ export const listBlockType = (block: Block, idx: number) => {

export const listComponent: { [key: string]: any } = {
bulletedlist: <div css={divCSS}></div>,
togglelist: (
<div css={divCSS}>
<Toggle />
</div>
),
quote: <div css={divCSS}></div>,
};

Expand Down

0 comments on commit 224c641

Please sign in to comment.