Skip to content

Commit

Permalink
changed from using cn to clsx and it now all works :D
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzhang03 committed Mar 4, 2023
1 parent d921560 commit 4ea29ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/ErrorGraphic.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import { IconDefinition } from "@fortawesome/free-solid-svg-icons"
import { cn } from "utils/util";
import clsx from "clsx";

interface ErrorGraphicProps {
icon: IconDefinition;
Expand All @@ -13,16 +13,16 @@ interface ErrorGraphicProps {

export default function ErrorGraphic({ className, icon, iconClassName, message, message2, messageClassName }: ErrorGraphicProps) {
return (
<div className={cn('flex', 'h-full', 'w-full', 'grow', 'flex-col', 'items-center', 'justify-center', 'gap-4', 'bg-gray-800', className)}>
<div className={clsx('flex', 'h-full', 'w-full', 'grow', 'flex-col', 'items-center', 'justify-center', 'gap-4', 'bg-gray-800', className)}>
<FontAwesomeIcon
icon={icon}
className={`text-title ${iconClassName}`}
className={clsx('text-title', iconClassName)}
/>
<p className={cn('text-center', 'text-h3', 'font-medium', messageClassName)}>
<p className={clsx('text-center', 'text-h3', 'font-medium', messageClassName)}>
{message}
</p>
{message2 && (
<p className={cn('text-center', 'text-h3', 'font-medium', messageClassName)}>
<p className={clsx('text-center', 'text-h3', 'font-medium', messageClassName)}>
{message2}
</p>
)}
Expand Down

0 comments on commit 4ea29ef

Please sign in to comment.