Регистрация
@@ -69,15 +85,19 @@ const RegisterForm = () => {
onBlur={() => setFocused({ ...focused, lastName: false })}
style={{ color: focused.lastName ? 'black' : 'inherit' }}
/>
-
setFocused({ ...focused, email: true })}
- onBlur={() => setFocused({ ...focused, email: false })}
- style={{ color: focused.email ? 'black' : 'inherit' }}
- />
+
+
setFocused({ ...focused, email: true })}
+ onBlur={() => setFocused({ ...focused, email: false })}
+ style={{ color: focused.email ? 'black' : 'inherit' }}
+ />
+ {error &&
{error}
}
+
{
+ const [descriptionSurvey, setDescriptionSurvey] = useState('');
+ const [titleSurvey, setTitleSurvey] = useState('Название опроса');
+
return(
-
+
)
}
\ No newline at end of file
diff --git a/SurveyFrontend/src/components/SaveButton/SaveButton.module.css b/SurveyFrontend/src/components/SaveButton/SaveButton.module.css
index c272122..e4cbd6b 100644
--- a/SurveyFrontend/src/components/SaveButton/SaveButton.module.css
+++ b/SurveyFrontend/src/components/SaveButton/SaveButton.module.css
@@ -1,7 +1,8 @@
/*SaveButton.module.css*/
.createSurveyButton {
- margin-left: 40px;
+ display: block;
+ margin: 10px auto;
padding: 25px 50.5px;
border: none;
border-radius: 20px;
@@ -12,4 +13,4 @@
text-align: center;
box-shadow: 0 0 7.4px 0 rgba(154, 202, 247, 1);
box-sizing: border-box;
-}
\ No newline at end of file
+}
diff --git a/SurveyFrontend/src/components/SaveButton/SaveButton.tsx b/SurveyFrontend/src/components/SaveButton/SaveButton.tsx
index 32396a9..2f8481a 100644
--- a/SurveyFrontend/src/components/SaveButton/SaveButton.tsx
+++ b/SurveyFrontend/src/components/SaveButton/SaveButton.tsx
@@ -2,12 +2,12 @@ import React from 'react'
import styles from './SaveButton.module.css'
interface CreateSurveyButtonProps {
- // onClick(): void;
+ onClick(): void;
}
-const SaveButton: React.FC
= () => {
+const SaveButton: React.FC = ({onClick}) => {
return (
-