mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 13:19:16 +00:00
Format next.js web app with prettier
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { CircleNotch } from '@phosphor-icons/react';
|
||||
import { CircleNotch } from "@phosphor-icons/react";
|
||||
|
||||
interface LoadingProps {
|
||||
className?: string;
|
||||
@@ -9,8 +9,18 @@ interface LoadingProps {
|
||||
export default function Loading(props: LoadingProps) {
|
||||
return (
|
||||
// NOTE: We can display usage tips here for casual learning moments.
|
||||
<div className={props.className || "bg-background opacity-50 flex items-center justify-center h-screen"}>
|
||||
<div>{props.message || "Loading" } <span><CircleNotch className="inline animate-spin h-5 w-5" /></span></div>
|
||||
<div
|
||||
className={
|
||||
props.className ||
|
||||
"bg-background opacity-50 flex items-center justify-center h-screen"
|
||||
}
|
||||
>
|
||||
<div>
|
||||
{props.message || "Loading"}{" "}
|
||||
<span>
|
||||
<CircleNotch className="inline animate-spin h-5 w-5" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -18,7 +28,12 @@ export default function Loading(props: LoadingProps) {
|
||||
export function InlineLoading(props: LoadingProps) {
|
||||
return (
|
||||
<button className={`${props.className}`}>
|
||||
<span>{props.message} <CircleNotch className={`inline animate-spin ${props.iconClassName ? props.iconClassName : 'h-5 w-5 mx-3'}`}/></span>
|
||||
<span>
|
||||
{props.message}{" "}
|
||||
<CircleNotch
|
||||
className={`inline animate-spin ${props.iconClassName ? props.iconClassName : "h-5 w-5 mx-3"}`}
|
||||
/>
|
||||
</span>
|
||||
</button>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user