From f8f6fb991a407a156be4c12ae2a76f43982ec735 Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 10 Dec 2024 20:47:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B2=D1=8B=D0=BD=D0=B5=D1=81=D0=B5=D0=BD=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE=D0=B2=D0=BE=D0=BA=20=D1=80?= =?UTF-8?q?=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/container/signup/index.tsx | 26 +++++++------------ src/container/signup/photo/index.style.ts | 17 ++++++++++++ .../signup/photo/{photo.tsx => index.tsx} | 23 +++------------- src/container/signup/photo/types.ts | 0 src/container/signup/title/index.tsx | 12 +++++++++ 5 files changed, 43 insertions(+), 35 deletions(-) create mode 100644 src/container/signup/photo/index.style.ts rename src/container/signup/photo/{photo.tsx => index.tsx} (69%) delete mode 100644 src/container/signup/photo/types.ts create mode 100644 src/container/signup/title/index.tsx 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 => {