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

View File

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