From fb04b4b58abbf99167fb3c59799ec2726fbeaf70 Mon Sep 17 00:00:00 2001 From: grafixeyehero Date: Thu, 7 Jul 2022 23:35:28 +0300 Subject: [PATCH] remove type prop form IconButtonElement --- src/components/dashboard/users/AccessScheduleList.tsx | 1 - src/components/dashboard/users/BlockedTagList.tsx | 1 - src/components/dashboard/users/UserCardBox.tsx | 1 - src/elements/IconButtonElement.tsx | 8 +++----- src/elements/SectionTitleContainer.tsx | 1 - 5 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/components/dashboard/users/AccessScheduleList.tsx b/src/components/dashboard/users/AccessScheduleList.tsx index a89f8837c6..1c776d12c6 100644 --- a/src/components/dashboard/users/AccessScheduleList.tsx +++ b/src/components/dashboard/users/AccessScheduleList.tsx @@ -40,7 +40,6 @@ const AccessScheduleList: FunctionComponent = ({index, DayOfWeek, StartH = ({tag}: IProps) => { = ({ user = {} }: IProps) => { > diff --git a/src/elements/IconButtonElement.tsx b/src/elements/IconButtonElement.tsx index c879e0ce0a..b39847403b 100644 --- a/src/elements/IconButtonElement.tsx +++ b/src/elements/IconButtonElement.tsx @@ -3,7 +3,6 @@ import globalize from '../scripts/globalize'; type IProps = { is?: string; - type?: string; id?: string; title?: string; className?: string; @@ -13,10 +12,10 @@ type IProps = { dataProfileid?: string | number; } -const createIconButtonElement = ({ is, type, id, className, title, icon, dataIndex, dataTag, dataProfileid }: IProps) => ({ +const createIconButtonElement = ({ is, id, className, title, icon, dataIndex, dataTag, dataProfileid }: IProps) => ({ __html: `