diff --git a/src/features/home/components/modules/categories/CategoryListModule.tsx b/src/features/home/components/modules/categories/CategoryListModule.tsx index fc3d2043e2d..8824a12f3ea 100644 --- a/src/features/home/components/modules/categories/CategoryListModule.tsx +++ b/src/features/home/components/modules/categories/CategoryListModule.tsx @@ -46,7 +46,6 @@ export const CategoryListModule = ({ key={item.id} label={item.title} height={BLOCK_HEIGHT} - textColor={colorMapping[item.color].text} fillColor={colorMapping[item.color].fill} borderColor={colorMapping[item.color].border} onBeforeNavigate={() => { diff --git a/src/features/search/components/CategoriesListDumb/CategoriesListDumb.native.test.tsx b/src/features/search/components/CategoriesListDumb/CategoriesListDumb.native.test.tsx index 2b0b44d60f0..6e11aecb113 100644 --- a/src/features/search/components/CategoriesListDumb/CategoriesListDumb.native.test.tsx +++ b/src/features/search/components/CategoriesListDumb/CategoriesListDumb.native.test.tsx @@ -21,7 +21,6 @@ const fixtureSortedCategories: ComponentProps['sorted }, }, }, - textColor: ColorsEnum.LILAC_DARK, fillColor: ColorsEnum.GOLD_LIGHT_100, borderColor: ColorsEnum.GOLD_LIGHT_200, }, @@ -37,7 +36,6 @@ const fixtureSortedCategories: ComponentProps['sorted }, }, }, - textColor: ColorsEnum.SKY_BLUE_DARK, fillColor: ColorsEnum.CORAL_LIGHT, borderColor: ColorsEnum.CORAL, }, diff --git a/src/features/search/components/CategoriesListDumb/CategoriesListDumb.stories.tsx b/src/features/search/components/CategoriesListDumb/CategoriesListDumb.stories.tsx index 151a385af3e..6943a7b3b76 100644 --- a/src/features/search/components/CategoriesListDumb/CategoriesListDumb.stories.tsx +++ b/src/features/search/components/CategoriesListDumb/CategoriesListDumb.stories.tsx @@ -42,7 +42,6 @@ Default.args = { withPush: true, }, }, - textColor: theme.colors.lilacDark, fillColor: theme.colors.goldLight100, borderColor: theme.colors.goldLight200, }, @@ -57,7 +56,6 @@ Default.args = { withPush: true, }, }, - textColor: theme.colors.coralDark, borderColor: theme.colors.skyBlue, fillColor: theme.colors.skyBlueLight, }, @@ -72,7 +70,6 @@ Default.args = { withPush: true, }, }, - textColor: theme.colors.deepPinkDark, borderColor: theme.colors.lilac, fillColor: theme.colors.lilacLight, }, @@ -87,7 +84,6 @@ Default.args = { withPush: true, }, }, - textColor: theme.colors.skyBlueDark, borderColor: theme.colors.coral, fillColor: theme.colors.coralLight, }, @@ -102,7 +98,6 @@ Default.args = { withPush: true, }, }, - textColor: theme.colors.lilacDark, borderColor: theme.colors.aquamarineDark, fillColor: theme.colors.aquamarineLight, }, diff --git a/src/shared/categoryButton/CategoryButton.tsx b/src/shared/categoryButton/CategoryButton.tsx index 63fe3dd22b3..c5e6abeac70 100644 --- a/src/shared/categoryButton/CategoryButton.tsx +++ b/src/shared/categoryButton/CategoryButton.tsx @@ -1,7 +1,6 @@ import React, { FunctionComponent } from 'react' import styled from 'styled-components/native' -import { Gradient } from 'features/search/enums' import { useHandleFocus } from 'libs/hooks/useHandleFocus' import { useHandleHover } from 'libs/hooks/useHandleHover' import { InternalTouchableLink } from 'ui/components/touchableLink/InternalTouchableLink' @@ -9,7 +8,6 @@ import { InternalNavigationProps, InternalTouchableLinkProps, } from 'ui/components/touchableLink/types' -import { AccessibleIcon } from 'ui/svg/icons/types' import { getSpacing, TypoDS } from 'ui/theme' // eslint-disable-next-line no-restricted-imports import { ColorsEnum } from 'ui/theme/colors' @@ -18,16 +16,10 @@ import { getHoverStyle } from 'ui/theme/getHoverStyle/getHoverStyle' export type CategoryButtonProps = { label: string - Illustration?: FunctionComponent - baseColor?: ColorsEnum - gradients?: Gradient navigateTo: InternalNavigationProps['navigateTo'] onBeforeNavigate?: () => void - children?: never height?: number style?: InternalTouchableLinkProps['style'] - // v2 App Design - textColor: ColorsEnum fillColor: ColorsEnum borderColor: ColorsEnum }