docs: add workflow and js sdk reference pages for commerce modules (#10898)
* docs: add workflow and js sdk reference pages for commerce modules * resolve build errors
This commit is contained in:
@@ -16,6 +16,7 @@ export const CardDefaultLayout = ({
|
||||
iconClassName,
|
||||
children,
|
||||
badge,
|
||||
rightIcon: RightIconComponent,
|
||||
}: CardProps) => {
|
||||
const isExternal = useIsExternalLink({ href })
|
||||
|
||||
@@ -61,7 +62,9 @@ export const CardDefaultLayout = ({
|
||||
</div>
|
||||
{badge && <Badge {...badge} />}
|
||||
<span className="text-medusa-fg-subtle">
|
||||
{isExternal ? <ArrowUpRightOnBox /> : <TriangleRightMini />}
|
||||
{RightIconComponent && <RightIconComponent />}
|
||||
{!RightIconComponent && isExternal && <ArrowUpRightOnBox />}
|
||||
{!RightIconComponent && !isExternal && <TriangleRightMini />}
|
||||
</span>
|
||||
|
||||
{href && (
|
||||
|
||||
@@ -9,6 +9,7 @@ import { CardLayoutMini } from "./Layout/Mini"
|
||||
export type CardProps = {
|
||||
type?: "default" | "large" | "filler" | "mini"
|
||||
icon?: React.FC<IconProps>
|
||||
rightIcon?: React.FC<IconProps>
|
||||
image?: string
|
||||
themeImage?: {
|
||||
light: string
|
||||
|
||||
Reference in New Issue
Block a user