Skip to content

Commit

Permalink
Applied prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
koss-service committed Dec 1, 2023
1 parent a91a0cc commit 5541462
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Form.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { ReactNode, useState } from "react";
import { RiErrorWarningFill } from 'react-icons/ri';
import { RiErrorWarningFill } from "react-icons/ri";
import SpinnerLoader from "./SpinnerLoader";

interface IObject<T> {
Expand Down Expand Up @@ -76,12 +76,12 @@ function Form<S extends InputSettings>(props: IFormProps<S>) {
}}
>
<h1 className="text-center text-3xl mb-10">{props.title}</h1>
{props.staticMessage&&(
{props.staticMessage && (
<p className="flex items-center justify-center">
<RiErrorWarningFill className="mr-2 fill-gray-300" />
<span className="text-gray-300">{props.staticMessage}</span>
</p>)
}
</p>
)}
{props.error && <p className="text-red-500">{props.error}</p>}
{props.info && <p className="text-primary">{props.info}</p>}
{loading && <SpinnerLoader />}
Expand Down

0 comments on commit 5541462

Please sign in to comment.