Skip to content

Commit

Permalink
Revert "[WEBREL]/Mitra/[WEBREL-2748] Remove the condition as we use t…
Browse files Browse the repository at this point in the history
…he compo…" (#15321)

This reverts commit dedf00f.
  • Loading branch information
farabi-deriv committed May 23, 2024
1 parent 8a0aaf9 commit 439d8a8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ type TListingContainerProps = {
type TOptionsProps = Pick<TListingContainerProps, 'title' | 'description' | 'is_deriv_platform'>;
type TSwitcherProps = Pick<TListingContainerProps, 'is_deriv_platform'>;

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

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

0 comments on commit 439d8a8

Please sign in to comment.