mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 07:56:59 +00:00
Accessibility optimization and removed redundant disabled attribute from dcm
This commit is contained in:
parent
8c2e914fd6
commit
f3a81d69d6
@ -8,10 +8,9 @@ import USPSection from '@/components/modules/usp-section/usp-section';
|
||||
interface getContentComponentProps {
|
||||
_type: string;
|
||||
_key: number;
|
||||
disabled: boolean;
|
||||
}
|
||||
|
||||
const getContentComponent = ({ _type, _key, disabled, ...rest }: getContentComponentProps) => {
|
||||
const getContentComponent = ({ _type, _key, ...rest }: getContentComponentProps) => {
|
||||
let Component: any;
|
||||
|
||||
switch (_type) {
|
||||
|
@ -14,7 +14,7 @@ const CategoryCard: FC<Props> = ({ category, className }) => {
|
||||
);
|
||||
|
||||
return (
|
||||
<Link href={`${category.slug}`} className={rootClassName} aria-label={category.name}>
|
||||
<Link href={`${category.slug}`} className={rootClassName}>
|
||||
<div className={'flex h-full w-full flex-1 flex-col justify-center'}>
|
||||
<div className="relative aspect-[3/4] h-full w-full">
|
||||
<SanityImage
|
||||
|
Loading…
x
Reference in New Issue
Block a user