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