Skip to content

Commit

Permalink
Merge branch 'feature/blog-page-components' of github.com:amplience/a…
Browse files Browse the repository at this point in the history
…mplience-bigcommerce-catalyst into feature/blog-page-components
  • Loading branch information
Benj0s committed May 16, 2024
2 parents 1b83ca9 + 649019a commit 1241718
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
18 changes: 2 additions & 16 deletions components/amplience/call-to-action/call-to-action.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable import/no-named-as-default */
'use client';

import clsx from 'clsx';
import React, { PropsWithChildren } from 'react';

import LinkWithQuery from '../link-with-query/link-with-query';
Expand All @@ -13,23 +12,10 @@ interface CallToActionProps extends PropsWithChildren {
variant?: 'outlined' | 'contained';
}

const CallToAction = ({
children,
href,
className,
variant = 'outlined',
...other
}: CallToActionProps) => {
const CallToAction = ({ children, href, className, ...other }: CallToActionProps) => {
return href ? (
<LinkWithQuery
className={clsx(
`font mt-4 rounded bg-[#333] px-3.5 py-2.5 text-xs font-bold text-[#eee] no-underline hover:bg-[#eee] hover:text-[#333] hover:no-underline`,
{
'font mt-4 rounded bg-[#eee] px-3.5 py-2.5 text-xs font-bold text-[#333] no-underline hover:bg-[#333] hover:text-[#eee] hover:no-underline':
variant === 'contained',
},
className,
)}
className="font mt-4 rounded bg-[#333] px-3.5 py-2.5 text-xs font-bold text-[#eee] no-underline hover:bg-[#eee] hover:text-[#333] hover:no-underline"
href={href}
{...other}
>
Expand Down
2 changes: 1 addition & 1 deletion components/amplience/image/image.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export enum ImageFormat {
PNG = 'png',
GIF = 'gif',
AVIF = 'avif',
DEFAULT = 'default',
DEFAULT = 'auto',
}

export enum ImageScaleMode {
Expand Down

0 comments on commit 1241718

Please sign in to comment.