Skip to content

Commit

Permalink
Fix font size.
Browse files Browse the repository at this point in the history
  • Loading branch information
amovar18 committed Jan 3, 2025
1 parent 1de2b7d commit 313d7bb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/design-system/src/components/pillToggle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ interface PillToggleProps {
secondOption: string;
pillToggle: string;
setPillToggle: (value: string) => void;
eeAnimatedTab: boolean;
}

const PillToggle = ({
firstOption,
secondOption,
pillToggle,
setPillToggle,
eeAnimatedTab,
}: PillToggleProps) => {
return (
<div className="w-80 h-8 rounded-full border border-gray-300 dark:border-quartz text-sm">
Expand All @@ -40,6 +42,7 @@ const PillToggle = ({
{
'bg-gray-200 dark:bg-gray-500 ': pillToggle === firstOption,
'bg-transparent': pillToggle !== firstOption,
'text-xs': eeAnimatedTab,
}
)}
onClick={() => setPillToggle(firstOption)}
Expand All @@ -52,6 +55,7 @@ const PillToggle = ({
{
'bg-gray-200 dark:bg-gray-500': pillToggle === secondOption,
'bg-transparent': pillToggle !== secondOption,
'text-xs': eeAnimatedTab,
}
)}
onClick={() => setPillToggle(secondOption)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,16 @@ interface PanelProps {
noBids: NoBidsType;
storage?: string[];
setStorage?: (data: string, index: number) => void;
eeAnimatedTab?: boolean;
}

const Panel = ({ receivedBids, noBids, storage, setStorage }: PanelProps) => {
const Panel = ({
receivedBids,
noBids,
storage,
setStorage,
eeAnimatedTab = false,
}: PanelProps) => {
const [selectedRow, setSelectedRow] = useState<
ReceivedBids | NoBidsType[keyof NoBidsType] | null
>(null);
Expand All @@ -67,6 +74,7 @@ const Panel = ({ receivedBids, noBids, storage, setStorage }: PanelProps) => {
secondOption={PillToggleOptions.NoBids}
pillToggle={pillToggle}
setPillToggle={setPillToggle}
eeAnimatedTab={eeAnimatedTab}
/>
</div>
<div className="flex-1 overflow-auto text-outer-space-crayola">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ const ExplorableExplanation = () => {
)
.flat(),
noBids: {},
eeAnimatedTab: true,
},
},
},
Expand Down

0 comments on commit 313d7bb

Please sign in to comment.