Skip to content

Commit

Permalink
[WEBREL]/Mitra/[WEBREL-2748] Remove the condition as we use the compo…
Browse files Browse the repository at this point in the history
…nent for bot… (#15309)

* fix: 🚑 remove the condition as we use the component for both CFD and Options

* fix: 🐛 remove passing the props
  • Loading branch information
mitra-deriv authored and farabi-deriv committed May 23, 2024
1 parent 6e2d309 commit 8a0aaf9
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ type TListingContainerProps = {
type TOptionsProps = Pick<TListingContainerProps, 'title' | 'description' | 'is_deriv_platform'>;
type TSwitcherProps = Pick<TListingContainerProps, 'is_deriv_platform'>;

const Options = ({ title, description, is_deriv_platform }: TOptionsProps) => {
if (!is_deriv_platform) return null;

const Options = ({ title, description }: TOptionsProps) => {
return (
<div className='listing-container__title'>
{title}
Expand All @@ -41,7 +39,7 @@ const ListingContainer = ({
return (
<div className={classNames('listing-container', className)}>
<div className='listing-container__top-container'>
<Options title={title} description={description} is_deriv_platform={is_deriv_platform} />
<Options title={title} description={description} />
<Switcher is_deriv_platform={is_deriv_platform} />
</div>
{is_outside_grid_container ? children : <GridContainer>{children}</GridContainer>}
Expand Down

0 comments on commit 8a0aaf9

Please sign in to comment.