mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-22 13:26:20 +02:00
Switch to tRPC (#173)
This commit is contained in:
parent
3d7e7e8a95
commit
2c4157ea24
245 changed files with 1585 additions and 1755 deletions
27
src/components/full-page-loader.tsx
Normal file
27
src/components/full-page-loader.tsx
Normal file
|
@ -0,0 +1,27 @@
|
|||
import clsx from "clsx";
|
||||
import * as React from "react";
|
||||
|
||||
import Spinner from "./icons/spinner.svg";
|
||||
|
||||
interface FullPageLoaderProps {
|
||||
className?: string;
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
const FullPageLoader: React.VoidFunctionComponent<FullPageLoaderProps> = ({
|
||||
children,
|
||||
className,
|
||||
}) => {
|
||||
return (
|
||||
<div
|
||||
className={clsx(" flex h-full items-center justify-center", className)}
|
||||
>
|
||||
<div className="flex items-center rounded-lg bg-indigo-500 px-4 py-3 text-sm text-white shadow-sm">
|
||||
<Spinner className="mr-3 h-5 animate-spin" />
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default FullPageLoader;
|
Loading…
Add table
Add a link
Reference in a new issue