From 819e58e9aa8d494d104b0ea6c5b71b13746737e9 Mon Sep 17 00:00:00 2001 From: cesarhenrq Date: Thu, 5 Oct 2023 11:06:53 -0300 Subject: [PATCH] feat: add active prop in location, computer, suitcase icons --- src/assets/db.icons.tsx | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/assets/db.icons.tsx b/src/assets/db.icons.tsx index 1952d00..857e6da 100644 --- a/src/assets/db.icons.tsx +++ b/src/assets/db.icons.tsx @@ -3,6 +3,7 @@ type IconProps = { width: number; height?: number; onClick?: () => void; + active?: boolean; }; function Magnifier({ fill, width, height, onClick }: IconProps) { @@ -30,7 +31,7 @@ function Magnifier({ fill, width, height, onClick }: IconProps) { ); } -function Location({ fill, width, height, onClick }: IconProps) { +function Location({ fill, width, height, onClick, active }: IconProps) { return ( @@ -55,7 +59,7 @@ function Location({ fill, width, height, onClick }: IconProps) { ); } -function Computer({ fill, width, height }: IconProps) { +function Computer({ fill, width, height, active }: IconProps) { return ( @@ -79,7 +86,7 @@ function Computer({ fill, width, height }: IconProps) { ); } -function Suitcase({ fill, width, height }: IconProps) { +function Suitcase({ fill, width, height, active }: IconProps) { return (