Use prettier to order tailwind classes

This commit is contained in:
Luke Vella 2022-04-16 10:25:29 +01:00
parent c5c2816c3d
commit eee23c1bb5
52 changed files with 268 additions and 262 deletions

View file

@ -44,7 +44,7 @@ const Button: React.ForwardRefRenderFunction<HTMLButtonElement, ButtonProps> = (
"btn-danger": type === "danger",
"btn-link": type === "link",
"btn-disabled": disabled,
"rounded-full p-2 h-auto": rounded,
"h-auto rounded-full p-2": rounded,
"w-10 p-0": !children,
},
className,
@ -54,7 +54,7 @@ const Button: React.ForwardRefRenderFunction<HTMLButtonElement, ButtonProps> = (
>
{loading ? (
<SpinnerIcon
className={clsx("w-5 animate-spin inline-block", {
className={clsx("inline-block w-5 animate-spin", {
"mr-2": !!children,
})}
/>