Skip to content

Commit

Permalink
hide x button if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier-Charles committed Feb 13, 2024
1 parent 868bf02 commit f00d51c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/ui-kit/src/mobile-components/pager/Pager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ export const Pager: React.FC<PagerProps> = ({
<div className="flex flex-grow justify-center uppercase font-bold text-base">
{title}
</div>
<button
type="button"
className="flex flex-grow justify-end"
onClick={handleClose}
>
<Close3Icon />
</button>
{handleClose && (
<button
type="button"
className="flex flex-grow justify-end"
onClick={handleClose}
>
<Close3Icon />
</button>
)}
</div>
);
};

0 comments on commit f00d51c

Please sign in to comment.