Publish button

This commit is contained in:
ilya-bkv 2023-02-11 13:36:32 +03:00
parent 9cf2ffa1c9
commit 6a02c05882
2 changed files with 5 additions and 4 deletions

View File

@ -12,6 +12,8 @@ import { createArticle } from '../../stores/zine/articles'
import type { ShoutInput } from '../../graphql/types.gen'
import { Sidebar } from './Sidebar'
import styles from './Sidebar.module.scss'
import Button from '../_shared/Button'
import { t } from '../../utils/intl'
type Props = {
initialContent?: string
@ -78,9 +80,7 @@ export const Editor = (props: Props) => {
return (
<div class={clsx('container')} style={{ width: '100%', 'max-width': '670px' }}>
<div class={styles.editor} ref={(el) => (editorElRef.current = el)} />
<button class={clsx('button')} onClick={handleSaveButtonClick}>
Опубликовать WIP
</button>
<Button value={t('Publish')} onClick={handleSaveButtonClick} />
<Sidebar editorViewRef={editorViewRef} />
</div>
)

View File

@ -234,5 +234,6 @@
"You've successfully logged out": "Вы успешно вышли из аккаунта",
"Header": "Заголовок",
"Subheader": "Подзаголовок",
"A short introduction to keep the reader interested": "Небольшое вступление, чтобы заинтересовать читателя"
"A short introduction to keep the reader interested": "Небольшое вступление, чтобы заинтересовать читателя",
"Publish": "Опубликовать"
}