diff --git a/src/components/boris/BorisUIDemo/index.tsx b/src/components/boris/BorisUIDemo/index.tsx index 4a958272..d8b3a0db 100644 --- a/src/components/boris/BorisUIDemo/index.tsx +++ b/src/components/boris/BorisUIDemo/index.tsx @@ -1,4 +1,4 @@ -import React, { FC } from 'react'; +import React, { FC, useState } from 'react'; import { Card } from '~/components/containers/Card'; import styles from './styles.module.scss'; import markdown from '~/styles/common/markdown.module.scss'; @@ -8,53 +8,59 @@ import { InputText } from '~/components/input/InputText'; interface IProps {} -const BorisUIDemo: FC = () => ( - -
-

UI

-

- Простая демонстрация элементов интерфейса. Используется, в основном, как подсказка при - разработке -

+const BorisUIDemo: FC = () => { + const [text, setText] = useState(''); -

Инпуты

+ return ( + +
+

UI

+

+ Простая демонстрация элементов интерфейса. Используется, в основном, как подсказка при + разработке +

-
- - - - +

Инпуты

-

Кнопки

+
+ + + + + +
-

Цвета

+

Кнопки

- - - - - - - +

Цвета

-

Размеры

+ + + + + + + - - - - - - - +

Размеры

-

Варианты

- - - - - -
-
-); + + + + + + + + +

Варианты

+ + + + + +
+
+ ); +}; export { BorisUIDemo }; diff --git a/src/components/comment/LocalCommentFormTextarea/index.tsx b/src/components/comment/LocalCommentFormTextarea/index.tsx index 36234743..1dcc9640 100644 --- a/src/components/comment/LocalCommentFormTextarea/index.tsx +++ b/src/components/comment/LocalCommentFormTextarea/index.tsx @@ -27,8 +27,7 @@ const LocalCommentFormTextarea: FC = ({ setRef }) => { onKeyDown={onKeyDown} disabled={isSubmitting} placeholder={placeholder} - minRows={2} - setRef={setRef} + ref={setRef} /> ); }; diff --git a/src/components/editors/EditorButtons/index.tsx b/src/components/editors/EditorButtons/index.tsx index b0679907..d73c282d 100644 --- a/src/components/editors/EditorButtons/index.tsx +++ b/src/components/editors/EditorButtons/index.tsx @@ -5,6 +5,7 @@ import { InputText } from '~/components/input/InputText'; import { Button } from '~/components/input/Button'; import { Padder } from '~/components/containers/Padder'; import { useNodeFormContext } from '~/hooks/node/useNodeFormFormik'; +import { Filler } from '~/components/containers/Filler'; const EditorButtons: FC = () => { const { values, handleChange, isSubmitting } = useNodeFormContext(); @@ -14,14 +15,16 @@ const EditorButtons: FC = () => { - + + +