Add loading spinner for email and domain page

This commit is contained in:
KMKoushik
2024-05-01 06:17:08 +10:00
parent 7996a8e373
commit a9143be5b6
3 changed files with 26 additions and 5 deletions

View File

@@ -1,6 +1,9 @@
import React from "react";
import { cn } from "..";
export const Spinner: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
export const Spinner: React.FC<
React.SVGProps<SVGSVGElement> & { innerSvgClass?: string }
> = (props) => {
return (
<svg
version="1.1"
@@ -15,7 +18,7 @@ export const Spinner: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
<g
strokeWidth="200"
strokeLinecap="round"
className="stroke-primary-foreground"
className={cn("stroke-primary-foreground", props.innerSvgClass)}
fill="none"
id="spinner"
>