Skip to content

Commit 8f04ca8

Browse files
kacperwalterKacper WalterKacper Walter
authored
More snippets (#359)
* Add snippets * Livespace snipppets * Add last working ds-editor.tsx snippet * New TS file --------- Co-authored-by: Kacper Walter <kacperwalter@192.168.1.60> Co-authored-by: Kacper Walter <kacperwalter@MacBook-Pro-Kacper.local>
1 parent b7d8e40 commit 8f04ca8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

JS/SNIPPETS/ds-editor/ds-editor.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type { DsEditorProps } from './ds-editor.types'
1111
import { Editable, withReact, Slate } from 'slate-react'
1212
import { withHistory } from 'slate-history'
1313
// import { DsEditorToolbar } from "./components/ds-editor-toolbar/ds-editor-toolbar.tsx"
14-
import { initialValue } from './config.ts'
14+
import { initialValue } from './config.ts' // TODO probably not from config, from email-composer
1515

1616
// TODO: figure out types customization and implement it properly https://arc.net/l/quote/ffzewvsj
1717
type CustomElement = { type: 'paragraph'; children: CustomText[] }
@@ -52,7 +52,9 @@ export function DsEditor({
5252
<div>
5353
Toolbar
5454
<MarkButton format="bold" icon="B" />
55-
55+
<MarkButton format="italic" icon="I" />
56+
<MarkButton format="underline" icon="U" />
57+
<MarkButton format="code" icon="C" />
5658
</div>
5759
<Editable
5860
className={classNames('ds-outline-none ds-w-full ds-h-full ds-border ds-border-grey-600 ds-p-sm')}

TS/learning.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)