mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Run prettier fix on all files (#581)
This commit is contained in:
@@ -43,8 +43,8 @@ const FeatureBar = dynamic(
|
||||
)
|
||||
|
||||
const Modal = dynamic(
|
||||
() => import('@components/ui/Modal'),
|
||||
Object.assign(dynamicProps, {ssr: false})
|
||||
() => import('@components/ui/Modal'),
|
||||
Object.assign(dynamicProps, { ssr: false })
|
||||
)
|
||||
|
||||
interface Props {
|
||||
|
@@ -28,9 +28,16 @@ const UserNav: FC<Props> = ({ className }) => {
|
||||
<ul className={s.list}>
|
||||
{process.env.COMMERCE_CART_ENABLED && (
|
||||
<li className={s.item}>
|
||||
<Button className={s.item} variant="naked" onClick={toggleSidebar} aria-label={`Cart items: ${itemsCount}`}>
|
||||
<Button
|
||||
className={s.item}
|
||||
variant="naked"
|
||||
onClick={toggleSidebar}
|
||||
aria-label={`Cart items: ${itemsCount}`}
|
||||
>
|
||||
<Bag />
|
||||
{itemsCount > 0 && <span className={s.bagCount}>{itemsCount}</span>}
|
||||
{itemsCount > 0 && (
|
||||
<span className={s.bagCount}>{itemsCount}</span>
|
||||
)}
|
||||
</Button>
|
||||
</li>
|
||||
)}
|
||||
|
@@ -44,7 +44,7 @@ const Swatch: React.FC<Omit<ButtonProps, 'variant'> & SwatchProps> = React.memo(
|
||||
<Button
|
||||
role="option"
|
||||
aria-selected={active}
|
||||
aria-label={(variant && label) ? `${variant} ${label}` : "Variant Swatch"}
|
||||
aria-label={variant && label ? `${variant} ${label}` : 'Variant Swatch'}
|
||||
className={swatchClassName}
|
||||
{...(label && color && { title: label })}
|
||||
style={color ? { backgroundColor: color } : {}}
|
||||
|
@@ -28,7 +28,7 @@ const Sidebar: FC<SidebarProps> = ({ children, onClose }) => {
|
||||
}
|
||||
|
||||
const contentElement = contentRef.current
|
||||
|
||||
|
||||
if (contentElement) {
|
||||
disableBodyScroll(contentElement, { reserveScrollBarGap: true })
|
||||
}
|
||||
|
@@ -14,7 +14,6 @@
|
||||
@apply pt-1 pb-2 text-2xl font-bold tracking-wide cursor-pointer mb-2;
|
||||
}
|
||||
|
||||
|
||||
/* Apply base font sizes and styles for typography markup (h2, h2, ul, p, etc.).
|
||||
A helpful addition for whenn page content is consumed from a source managed through a wysiwyg editor. */
|
||||
|
||||
|
Reference in New Issue
Block a user