Skip to content

Commit

Permalink
fix style issue on TcPeriodRange
Browse files Browse the repository at this point in the history
  • Loading branch information
zuies committed Dec 5, 2023
1 parent 591f794 commit 3ae63a9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/components/communitySettings/platform/TcPeriodRange.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useEffect, useState } from 'react';
import TcButtonGroup from '../../shared/TcButtonGroup';
import TcButton from '../../shared/TcButton';
import clsx from 'clsx';

type PeriodValue = 'Last 35 days' | '1M' | '3M' | '6M' | '1Y';

Expand Down Expand Up @@ -88,17 +89,20 @@ function TcPeriodRange({ handleSelectedDate, activePeriod }: ITcPeriodRange) {
};

return (
<TcButtonGroup>
<TcButtonGroup disableElevation>
{periods.map((el) => (
<TcButton
key={el}
disableElevation={true}
text={el}
className={
el === selected ? 'bg-black text-white' : 'bg-[#EEEEEE] text-black'
}
variant="contained"
sx={{ width: 'auto', padding: '0.4rem 1rem' }}
className={clsx(
el === selected ? 'bg-black text-white' : 'bg-[#EEEEEE] text-black',
'border-0'
)}
sx={{
width: 'auto',
padding: '0.4rem 1rem',
}}
onClick={() => handleButtonClick(el)}
/>
))}
Expand Down

0 comments on commit 3ae63a9

Please sign in to comment.