Skip to content

Commit

Permalink
(PC-33718) refactor(CategoryButton): remove unused props
Browse files Browse the repository at this point in the history
  • Loading branch information
nmajorfrances-pass committed Jan 10, 2025
1 parent 21c448c commit 737a4d5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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={() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const fixtureSortedCategories: ComponentProps<typeof CategoriesListDumb>['sorted
},
},
},
textColor: ColorsEnum.LILAC_DARK,
fillColor: ColorsEnum.GOLD_LIGHT_100,
borderColor: ColorsEnum.GOLD_LIGHT_200,
},
Expand All @@ -37,7 +36,6 @@ const fixtureSortedCategories: ComponentProps<typeof CategoriesListDumb>['sorted
},
},
},
textColor: ColorsEnum.SKY_BLUE_DARK,
fillColor: ColorsEnum.CORAL_LIGHT,
borderColor: ColorsEnum.CORAL,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ Default.args = {
withPush: true,
},
},
textColor: theme.colors.lilacDark,
fillColor: theme.colors.goldLight100,
borderColor: theme.colors.goldLight200,
},
Expand All @@ -57,7 +56,6 @@ Default.args = {
withPush: true,
},
},
textColor: theme.colors.coralDark,
borderColor: theme.colors.skyBlue,
fillColor: theme.colors.skyBlueLight,
},
Expand All @@ -72,7 +70,6 @@ Default.args = {
withPush: true,
},
},
textColor: theme.colors.deepPinkDark,
borderColor: theme.colors.lilac,
fillColor: theme.colors.lilacLight,
},
Expand All @@ -87,7 +84,6 @@ Default.args = {
withPush: true,
},
},
textColor: theme.colors.skyBlueDark,
borderColor: theme.colors.coral,
fillColor: theme.colors.coralLight,
},
Expand All @@ -102,7 +98,6 @@ Default.args = {
withPush: true,
},
},
textColor: theme.colors.lilacDark,
borderColor: theme.colors.aquamarineDark,
fillColor: theme.colors.aquamarineLight,
},
Expand Down
8 changes: 0 additions & 8 deletions src/shared/categoryButton/CategoryButton.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
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'
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'
Expand All @@ -18,16 +16,10 @@ import { getHoverStyle } from 'ui/theme/getHoverStyle/getHoverStyle'

export type CategoryButtonProps = {
label: string
Illustration?: FunctionComponent<AccessibleIcon>
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
}
Expand Down

0 comments on commit 737a4d5

Please sign in to comment.