Add eslint rule and fix as many issues as possible

This commit is contained in:
Khoa Le
2023-06-19 23:42:04 -04:00
parent e9eacc445d
commit 9d33e4756b
689 changed files with 9446 additions and 21821 deletions
@@ -1,6 +1,6 @@
import { twMerge } from 'tailwind-merge';
import { twMerge } from "tailwind-merge";
type SizeOptions = 'xs' | 'sm' | 'md' | 'lg';
type SizeOptions = "xs" | "sm" | "md" | "lg";
type Props = {
className?: string;
@@ -8,19 +8,19 @@ type Props = {
};
const sizeChart: Record<SizeOptions, string> = {
xs: 'w-4 h-4',
sm: 'w-6 h-6',
md: 'w-8 h-8',
lg: 'w-12 h-12'
xs: "w-4 h-4",
sm: "w-6 h-6",
md: "w-8 h-8",
lg: "w-12 h-12"
};
export const Spinner = ({ className, size = 'md' }: Props): JSX.Element => {
export const Spinner = ({ className, size = "md" }: Props): JSX.Element => {
return (
<div role="status">
<svg
aria-hidden="true"
className={twMerge(
' text-gray-200 animate-spin dark:text-gray-600 fill-primary m-1',
" text-gray-200 animate-spin dark:text-gray-600 fill-primary m-1",
sizeChart[size],
className
)}
+1 -1
View File
@@ -1 +1 @@
export { Spinner } from './Spinner';
export { Spinner } from "./Spinner";