Use server actions instead of client-side API calls
This commit is contained in:
parent
5a3127dcb0
commit
aa453954ed
30 changed files with 703 additions and 462 deletions
29
apps/link/app/(main)/_components/SetupModeWarning.tsx
Normal file
29
apps/link/app/(main)/_components/SetupModeWarning.tsx
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
"use client";
|
||||
|
||||
import { FC } from "react";
|
||||
import { Box } from "@mui/material";
|
||||
|
||||
interface SetupModeWarningProps {
|
||||
setupModeActive: boolean;
|
||||
}
|
||||
|
||||
export const SetupModeWarning: FC<SetupModeWarningProps> = ({
|
||||
setupModeActive,
|
||||
}) =>
|
||||
setupModeActive ? (
|
||||
<Box
|
||||
sx={{
|
||||
backgroundColor: "red",
|
||||
textAlign: "center",
|
||||
zIndex: 10000,
|
||||
position: "absolute",
|
||||
width: "100vw",
|
||||
top: 0,
|
||||
left: 0,
|
||||
}}
|
||||
>
|
||||
<Box component="h2" sx={{ color: "white", m: 0, p: 0 }}>
|
||||
Setup Mode Active
|
||||
</Box>
|
||||
</Box>
|
||||
) : null;
|
||||
Loading…
Add table
Add a link
Reference in a new issue