Skip to content

Commit

Permalink
Added excludeLayout flag
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekLad committed Oct 8, 2024
1 parent 3b30f3d commit cf7f547
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion components/full-page-spinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ import { Spinner } from "@nextui-org/react";

import DefaultLayout from "@/layouts/default";

export const FullPageSpinner = () => {
export const FullPageSpinner = (props: { excludeLayout?: boolean }) => {
if (props.excludeLayout) {
return (
<div className="flex h-full w-full justify-center items-center">
<Spinner size="lg" />
</div>
);
}

return (
<DefaultLayout>
<div className="flex h-full w-full justify-center items-center">
Expand Down

0 comments on commit cf7f547

Please sign in to comment.