Skip to content

Commit

Permalink
fix: the tabs height
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiryous committed Oct 14, 2024
1 parent 4e08816 commit 7ef3a6f
Show file tree
Hide file tree
Showing 5 changed files with 262 additions and 230 deletions.
23 changes: 13 additions & 10 deletions keep-ui/app/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
import { Subtitle, Title } from "@tremor/react";
import Image from "next/image";
import { clsx } from "clsx";

export default function Loading({
includeMinHeight = true,
slowLoading = false,
loadingText = "Just a second, getting your data 🚨",
extraLoadingText = ""
extraLoadingText = "",
className,
}: {
includeMinHeight?: boolean;
slowLoading?: boolean;
loadingText?: string;
extraLoadingText?: string;
}) {
className?: string;
}) {
return (
<main
className={`flex flex-col items-center justify-center ${
includeMinHeight ? "min-h-screen-minus-200" : ""
}`}
className={clsx(
"flex flex-col items-center justify-center",
includeMinHeight && "min-h-screen-minus-200",
className
)}
>
<Image
className="animate-bounce"
Expand All @@ -26,11 +31,9 @@ export default function Loading({
height={200}
/>
<Title>{loadingText}</Title>

{extraLoadingText && (
<Subtitle>{extraLoadingText}</Subtitle>
)}


{extraLoadingText && <Subtitle>{extraLoadingText}</Subtitle>}

{slowLoading && (
<Subtitle>
This is taking a bit longer then usual, please wait...
Expand Down
Loading

0 comments on commit 7ef3a6f

Please sign in to comment.