cleanup & small features

This commit is contained in:
2024-04-13 13:14:59 +03:00
parent c8c5c45fe2
commit 8904d3c2b6
5 changed files with 15 additions and 14 deletions

View File

@ -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>

View File

@ -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";

View File

@ -3,7 +3,6 @@ import {
CreateQueueRequest,
Queue,
useCreateQueueMutation,
useGetQueuesQuery,
} from "../../slice/QueueApi";
import "../styles.css";
import { Button, Form, Input, Spin } from "antd";

View File

@ -88,5 +88,11 @@
},
"(optional)": {
"ru": "(опционально)"
},
"Queue created": {
"ru": "Очередь создана"
},
"Failed to create queue": {
"ru": "Не удалось создать очередь"
}
}

View File

@ -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 }) => {