Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Create JS disabled alert component
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent b6c6967 commit 7e8fb12
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions components/NoJSAlert.tsx
@@ -0,0 +1,18 @@
import {
Alert,
AlertDescription,
AlertIcon,
AlertTitle,
} from "@chakra-ui/react";

export default function () {
return (
<Alert status="error">
<AlertIcon />
<AlertTitle>JavaScript Disabled!</AlertTitle>
<AlertDescription>
Some features of this page may not work.
</AlertDescription>
</Alert>
);
}

0 comments on commit 7e8fb12

Please sign in to comment.