Skip to content

Commit

Permalink
modified the copied code when clicking an icon in the icon doc (#122)
Browse files Browse the repository at this point in the history
Co-authored-by: Francis Thibault <[email protected]>
  • Loading branch information
fraincs and Francis Thibault authored Dec 21, 2023
1 parent 11413f6 commit a28860a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/docs/components/iconTable/IconItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ const IconItem: React.FC<IconItemProps> = ({ name, type, size }) => {

const formattedName = name.replace("Icon", "");
const copyString = type === "react"
? size !== "md"
? `<${name} size="${size}" />`
: `<${name} />`
? `${name}`
: `${toKebabCase(formattedName).toLowerCase()}-${getIconNumericSize(size)}.svg`;

const Component = IconLibrary[name];
Expand Down

0 comments on commit a28860a

Please sign in to comment.