Fix format errors

This commit is contained in:
Guangya Liu 2023-09-12 11:17:11 -04:00
commit 48586fc3e6
3 changed files with 35 additions and 34 deletions

View file

@ -1,7 +1,9 @@
import { forwardRef } from "react"; import { forwardRef } from "react";
export const GradientSparkles = forwardRef<SVGSVGElement, React.PropsWithChildren<{}>>( export const GradientSparkles = forwardRef<
(props, ref) => { SVGSVGElement,
React.PropsWithChildren<{}>
>((props, ref) => {
return ( return (
<> <>
<svg width="0" height="0" style={{ position: "absolute" }}> <svg width="0" height="0" style={{ position: "absolute" }}>
@ -27,12 +29,11 @@ export const GradientSparkles = forwardRef<SVGSVGElement, React.PropsWithChildre
stroke-linecap="round" stroke-linecap="round"
stroke-linejoin="round" stroke-linejoin="round"
stroke="url(#grad1)" stroke="url(#grad1)"
ref={ref} {...props} ref={ref}
{...props}
> >
<path d="M12 12c-2-2.67-4-4-6-4a4 4 0 1 0 0 8c2 0 4-1.33 6-4Zm0 0c2 2.67 4 4 6 4a4 4 0 0 0 0-8c-2 0-4 1.33-6 4Z" /> <path d="M12 12c-2-2.67-4-4-6-4a4 4 0 1 0 0 8c2 0 4-1.33 6-4Zm0 0c2 2.67 4 4 6 4a4 4 0 0 0 0-8c-2 0-4 1.33-6 4Z" />
</svg> </svg>
</> </>
); );
} });
);

View file

@ -190,7 +190,7 @@ export default function AdminPage() {
setSuccessData({ setSuccessData({
title: "Success! New user added!", title: "Success! New user added!",
}); });
}) });
}) })
.catch((error) => { .catch((error) => {
setErrorData({ setErrorData({