Skip to content

Commit

Permalink
Merge pull request #209 from TogetherCrew/fix/style-issue
Browse files Browse the repository at this point in the history
fix style issue on TcPeriodRange
  • Loading branch information
mehdi-torabiv authored Dec 5, 2023
2 parents 591f794 + 3ae63a9 commit 0e7d527
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 0e7d527

Please sign in to comment.