cleanup & small features
This commit is contained in:
@ -138,7 +138,7 @@ const AuthModal = (props: {
|
||||
},
|
||||
]}
|
||||
>
|
||||
<Input />
|
||||
<Input autoFocus />
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
name="password"
|
||||
@ -150,7 +150,7 @@ const AuthModal = (props: {
|
||||
},
|
||||
]}
|
||||
>
|
||||
<Input type="password" />
|
||||
<Input type="password" onPressEnter={() => loginForm.submit()} />
|
||||
</Form.Item>
|
||||
</Form>
|
||||
<Form
|
||||
@ -208,7 +208,10 @@ const AuthModal = (props: {
|
||||
}),
|
||||
]}
|
||||
>
|
||||
<Input type="password" />
|
||||
<Input
|
||||
type="password"
|
||||
onPressEnter={() => registerForm.submit()}
|
||||
/>
|
||||
</Form.Item>
|
||||
</Form>
|
||||
</Carousel>
|
||||
|
||||
@ -6,8 +6,8 @@ import {
|
||||
SettingOutlined,
|
||||
UserOutlined,
|
||||
} from "@ant-design/icons";
|
||||
import { Drawer, Layout, Menu, MenuProps, Popover } from "antd";
|
||||
import React, { Children, useEffect, useState } from "react";
|
||||
import { Drawer, Layout, Menu, MenuProps } from "antd";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import AuthModal from "./AuthModal";
|
||||
import "./styles.css";
|
||||
import { StorePrototype, logOut, setLanguage, store } from "../config/store";
|
||||
|
||||
@ -3,7 +3,6 @@ import {
|
||||
CreateQueueRequest,
|
||||
Queue,
|
||||
useCreateQueueMutation,
|
||||
useGetQueuesQuery,
|
||||
} from "../../slice/QueueApi";
|
||||
import "../styles.css";
|
||||
import { Button, Form, Input, Spin } from "antd";
|
||||
|
||||
@ -88,5 +88,11 @@
|
||||
},
|
||||
"(optional)": {
|
||||
"ru": "(опционально)"
|
||||
},
|
||||
"Queue created": {
|
||||
"ru": "Очередь создана"
|
||||
},
|
||||
"Failed to create queue": {
|
||||
"ru": "Не удалось создать очередь"
|
||||
}
|
||||
}
|
||||
@ -1,17 +1,10 @@
|
||||
import React, { ReactNode } from "react";
|
||||
import { BrowserRouter, Route, Routes } from "react-router-dom";
|
||||
import MainPage from "./MainPage";
|
||||
import {
|
||||
StorePrototype,
|
||||
getLocalToken,
|
||||
loadLanguage,
|
||||
store,
|
||||
} from "../config/store";
|
||||
import { getLocalToken, loadLanguage, store } from "../config/store";
|
||||
import DashboardPage from "./DashboardPage";
|
||||
import PropTypes from "prop-types";
|
||||
import { useSelector } from "react-redux";
|
||||
import NotFoundPage from "./NotFoundPage";
|
||||
import CreateQueueCard from "../components/queue/CreateQueueCard";
|
||||
import NewQueuePage from "./NewQueuePage";
|
||||
|
||||
const AppRoutes = ({ children }: { children: ReactNode }) => {
|
||||
|
||||
Reference in New Issue
Block a user