-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #817 from Health-Informatics-UoN/fix/add-permissio…
…n-SR-details Add permission on layout of SR details page
- Loading branch information
Showing
2 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import { ExclamationTriangleIcon } from "@radix-ui/react-icons"; | ||
|
||
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; | ||
import { TriangleAlert } from "lucide-react"; | ||
|
||
export function Forbidden() { | ||
return ( | ||
<Alert variant="destructive"> | ||
<ExclamationTriangleIcon className="h-4 w-4" /> | ||
<AlertTitle>Error</AlertTitle> | ||
<AlertDescription> | ||
You do not have permission to access this resource. | ||
</AlertDescription> | ||
<div> | ||
<AlertTitle className="flex items-center"> | ||
<TriangleAlert className="h-4 w-4 mr-2" /> | ||
Error | ||
</AlertTitle> | ||
<AlertDescription> | ||
You do not have permission to access this resource. | ||
</AlertDescription> | ||
</div> | ||
</Alert> | ||
); | ||
} |