queue creation logic
This commit is contained in:
18
frontend/app/src/pages/NewQueuePage.tsx
Normal file
18
frontend/app/src/pages/NewQueuePage.tsx
Normal file
@ -0,0 +1,18 @@
|
||||
import React from "react";
|
||||
import "./styles.css";
|
||||
import { useSelector } from "react-redux";
|
||||
import { StorePrototype } from "../config/store";
|
||||
import tr from "../config/translation";
|
||||
import Title from "antd/es/typography/Title";
|
||||
import CreateQueueCard from "../components/queue/CreateQueueCard";
|
||||
|
||||
const NewQueuePage = () => {
|
||||
const user = useSelector((state: StorePrototype) => state.auth.user);
|
||||
return user ? (
|
||||
<CreateQueueCard />
|
||||
) : (
|
||||
<Title level={2}>{tr("Log in first")}</Title>
|
||||
);
|
||||
};
|
||||
|
||||
export default NewQueuePage;
|
||||
Reference in New Issue
Block a user