diff --git a/src/container/signup/index.tsx b/src/container/signup/index.tsx index 953c604..d9df1b6 100644 --- a/src/container/signup/index.tsx +++ b/src/container/signup/index.tsx @@ -2,27 +2,30 @@ import * as React from 'react'; import {Button, TextField, Grid, Box, Typography, Container } from '@mui/material'; -import Photo from './photo/photo'; -import { createTheme, ThemeProvider } from '@mui/material/styles'; +import Title from './title'; +import Photo from './photo'; import axios from 'axios'; import student_icon from './student-icon.png'; import "./index.css"; //import useTelegram from "../hooks/useTelegram"; import Select from 'react-select'; -import makeAnimated from 'react-select/animated'; import { useState } from 'react'; import { useConstant } from '../Constant'; -const animatedComponents = makeAnimated(); -const theme = createTheme(); - const SingUpPage = (): React.ReactElement => { const [selectedPhoto, setSelectedPhoto] = useState(null); const [selectedOption, setSelectedOption] = useState(null); + + const handlePhotoChange = (photo) => { + setSelectedPhoto(photo); + }; + const handleChange = (selectedOption) => { setSelectedOption(selectedOption); }; + + const { interests } = useConstant(); //const { user_id, username, onClose } = useTelegram(); /* @@ -45,12 +48,7 @@ const SingUpPage = (): React.ReactElement => { }; */ - const handlePhotoChange = (photo) => { - setSelectedPhoto(photo); // Сохраняем выбранное изображение - }; - return ( - { alignItems: 'center', }} > - - Регистрация - + Регистрация @@ -119,7 +115,6 @@ const SingUpPage = (): React.ReactElement => {