From a2a45b6fef6ae6f18456dbe5cd7beebcaf371601 Mon Sep 17 00:00:00 2001 From: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:53:05 +0100 Subject: [PATCH] fix: minor fixes to IconButton and Button documentation (#5636) **What** - Updates example on IconButton page so it no longer uses IconBadge - Removes the "small" size from Button props as it no longer exists. --- www/apps/ui/src/content/docs/components/icon-button.mdx | 6 +++--- www/apps/ui/src/props/button.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/www/apps/ui/src/content/docs/components/icon-button.mdx b/www/apps/ui/src/content/docs/components/icon-button.mdx index 54484fb271..98b5961d33 100644 --- a/www/apps/ui/src/content/docs/components/icon-button.mdx +++ b/www/apps/ui/src/content/docs/components/icon-button.mdx @@ -11,14 +11,14 @@ component: true --- ```tsx -import { IconBadge } from "@medusajs/ui" +import { IconButton } from "@medusajs/ui" import { Plus } from "@medusajs/icons" ``` ```tsx - + - + ``` ## API Reference diff --git a/www/apps/ui/src/props/button.tsx b/www/apps/ui/src/props/button.tsx index 0e7fbd1a44..571456b9f3 100644 --- a/www/apps/ui/src/props/button.tsx +++ b/www/apps/ui/src/props/button.tsx @@ -14,7 +14,7 @@ const buttonProps: PropDataMap = [ prop: "size", type: { type: "enum", - values: ["small", "base", "large", "xlarge"], + values: ["base", "large", "xlarge"], }, defaultValue: "base", },