Skip to content

Commit

Permalink
Revert back change
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyAppeldoorn committed Sep 5, 2023
1 parent 2da94ae commit 2f94075
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@sandercamp/ui-components",
"author": "Sander Camp",
"license": "MIT",
"version": "0.0.30",
"version": "0.0.31",
"packageManager": "[email protected]",
"main": "./lib/index.js",
"exports": {
Expand Down
1 change: 0 additions & 1 deletion src/atoms/Icon/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default {
component: Icon,
args: {
name: "search",
color: "pink",
},
} as ComponentMeta<typeof Icon>;

Expand Down
5 changes: 1 addition & 4 deletions src/atoms/Icon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@ import styles from "./index.module.css";
export type IconProps = JSX.IntrinsicElements["span"] & {
name: string;
fill?: boolean;
color?: string;
};

const Icon: React.FC<IconProps> = ({ className, name, color, fill = true }) => (
const Icon: React.FC<IconProps> = ({ className, name, fill = true }) => (
<span
className={classNames(
fill ? "material-symbols-rounded" : "material-symbols-rounded-outlined",
styles.icon,

className
)}
style={{ color: color }}
>
{name}
</span>
Expand Down

0 comments on commit 2f94075

Please sign in to comment.