Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

fix: attributes on icon type #220

Merged
merged 2 commits into from
Jan 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/fundamentals/icons/bell-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import IconProps from "./types/icon-type"
const BellIcon: React.FC<IconProps> = ({
size = "24px",
color = "currentColor",
attributes,
...attributes
}) => {
return (
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/fundamentals/icons/bell-noti-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const BellNotiIcon: React.FC<IBellNotiIconProps> = ({
size = "24px",
color = "currentColor",
accentColor = "#F43F5E",
attributes,
...attributes
}) => {
return (
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/fundamentals/icons/chevron-right.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import IconProps from "./types/icon-type"
const ChevronRightIcon: React.FC<IconProps> = ({
size = "24px",
color = "currentColor",
attributes,
...attributes
}) => {
return (
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/fundamentals/icons/coins-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import IconProps from "./types/icon-type"
const CoinsIcon: React.FC<IconProps> = ({
size = "24px",
color = "currentColor",
attributes,
...attributes
}) => {
return (
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/fundamentals/icons/crosshair-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import IconProps from "./types/icon-type"
const CrosshairIcon: React.FC<IconProps> = ({
size = "24px",
color = "currentColor",
attributes,
...attributes
}) => {
return (
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/fundamentals/icons/dollar-sign-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import IconProps from "./types/icon-type"
const DollarSignIcon: React.FC<IconProps> = ({
size = "24px",
color = "currentColor",
attributes,
...attributes
}) => {
return (
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/fundamentals/icons/happy-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import IconProps from "./types/icon-type"
const HappyIcon: React.FC<IconProps> = ({
size = "24px",
color = "currentColor",
attributes,
...attributes
}) => {
return (
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/fundamentals/icons/mail-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import IconProps from "./types/icon-type"
const MailIcon: React.FC<IconProps> = ({
size = "24px",
color = "currentColor",
attributes,
...attributes
}) => {
return (
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/fundamentals/icons/map-pin-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import IconProps from "./types/icon-type"
const MapPinIcon: React.FC<IconProps> = ({
size = "24px",
color = "currentColor",
attributes,
...attributes
}) => {
return (
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/fundamentals/icons/search-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import IconProps from "./types/icon-type"
const SearchIcon: React.FC<IconProps> = ({
size = "24px",
color = "currentColor",
attributes,
...attributes
}) => {
return (
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/fundamentals/icons/truck-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import IconProps from "./types/icon-type"
const TruckIcon: React.FC<IconProps> = ({
size = "24px",
color = "currentColor",
attributes,
...attributes
}) => {
return (
<svg
Expand Down
3 changes: 1 addition & 2 deletions src/components/fundamentals/icons/types/icon-type.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
type IconProps = {
color?: string
size?: string | number
attributes?: React.SVGAttributes<SVGElement>
}
} & React.SVGAttributes<SVGElement>

export default IconProps
2 changes: 1 addition & 1 deletion src/components/fundamentals/icons/users-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import IconProps from "./types/icon-type"
const UsersIcon: React.FC<IconProps> = ({
size = "24px",
color = "currentColor",
attributes,
...attributes
}) => {
return (
<svg
Expand Down