Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Display login component and actually force dropdown to right
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 8a27b5d commit a83af19
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pages/mod-queue.page.tsx
Expand Up @@ -9,8 +9,12 @@ import {
} from "@chakra-ui/react";
import { lazy, useState } from "react";
const AppealCard = lazy(() => import("../components/AppealCard"));
import Login from "../components/Login";

export function Page(pageProps: { [p: string]: any }) {
if (!pageProps.logged_in)
return <Login />;

const isDesktop = useBreakpointValue({ base: false, lg: true });
const entryTypes = [];
const [entries, setEntries] = useState([] as JSX.Element[]);
Expand Down Expand Up @@ -66,10 +70,10 @@ export function Page(pageProps: { [p: string]: any }) {
}

return (
<Container maxW="container.xl">
<Container maxW="container.lg">
<Flex>
<VStack>{entries}</VStack>
<Box display={isDesktop ? undefined : "none"} w="250px">
<VStack w="container.md">{entries}</VStack>
<Box display={isDesktop ? undefined : "none"} w="256px">
<Select placeholder="Entry Type">
<option value="">All</option>
{entryTypes}
Expand Down

0 comments on commit a83af19

Please sign in to comment.