Skip to content

Commit

Permalink
feat(icons): add new s and xs sizes for the Book icon (#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
masoudmanson authored Oct 9, 2024
1 parent 3a37742 commit a256f8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/components/src/common/svgs/IconBookSmall.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions packages/components/src/core/Icon/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ReactComponent as IconBarChartHorizontal3Small } from "../../common/svg
import { ReactComponent as IconBarChartVertical3Small } from "../../common/svgs/IconBarChartVertical3Small.svg";
import { ReactComponent as IconBarChartVertical4Small } from "../../common/svgs/IconBarChartVertical4Small.svg";
import { ReactComponent as IconBookLarge } from "../../common/svgs/IconBookLarge.svg";
import { ReactComponent as IconBookSmall } from "../../common/svgs/IconBookSmall.svg";
import { ReactComponent as IconCheckCircleLarge } from "../../common/svgs/IconCheckCircleLarge.svg";
import { ReactComponent as IconCheckCircleSmall } from "../../common/svgs/IconCheckCircleSmall.svg";
import { ReactComponent as IconCheckSmall } from "../../common/svgs/IconCheckSmall.svg";
Expand Down Expand Up @@ -144,7 +145,7 @@ export interface IconNameToSizes {
BarChartHorizontal3: "xs" | "s";
BarChartVertical3: "xs" | "s";
BarChartVertical4: "xs" | "s";
Book: "l" | "xl";
Book: "xs" | "s" | "l" | "xl";
Check: "xs" | "s";
CheckCircle: "xs" | "s" | "l" | "xl";
ChevronDown: "xs" | "s" | "l" | "xl";
Expand Down Expand Up @@ -280,7 +281,7 @@ export const iconMap: Props = {
},
Book: {
largeIcon: IconBookLarge,
smallIcon: null,
smallIcon: IconBookSmall,
},
Check: {
largeIcon: null,
Expand Down

0 comments on commit a256f8c

Please sign in to comment.