diff --git a/resources/js/Components/Articles/ArticleCard/ArticleCard.tsx b/resources/js/Components/Articles/ArticleCard/ArticleCard.tsx index d64e68de6..27059bf7c 100644 --- a/resources/js/Components/Articles/ArticleCard/ArticleCard.tsx +++ b/resources/js/Components/Articles/ArticleCard/ArticleCard.tsx @@ -11,9 +11,11 @@ export type ArticleCardVariant = "normal" | "large"; export const ArticleCard = ({ article, variant, + className, }: { article: App.Data.Articles.ArticleData; variant?: ArticleCardVariant; + className?: string; }): JSX.Element => { const { t } = useTranslation(); const { user } = useActiveUser(); @@ -27,11 +29,12 @@ export const ArticleCard = ({ className={cn( "transition-default group flex h-full w-full flex-col overflow-hidden rounded-xl border border-theme-secondary-300", { - "bg-white ring-inset ring-theme-primary-100 hover:ring dark:border-theme-dark-700 dark:bg-theme-dark-900 dark:hover:ring-theme-dark-500": + "bg-white ring-theme-primary-100 hover:ring dark:border-theme-dark-700 dark:bg-theme-dark-900 dark:hover:ring-theme-dark-500": !isLargeVariant, "bg-theme-dark-900 hover:bg-theme-primary-700 dark:border-none dark:bg-theme-primary-700 dark:hover:bg-theme-primary-600": isLargeVariant, }, + className, )} >