Skip to content

Commit

Permalink
directly destructure the direction from useTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
TomRytt committed Dec 27, 2024
1 parent ed5e094 commit 7260e67
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pages/DonateModal/DonateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ export const DonateModal: React.FC<DonateModalProps> = ({ isVisible, onClose })
*/
const shouldImgCollapse = useMediaQuery('(max-width: 950px)')
const { t } = useTranslation()
const theme = useTheme()

const direction = theme.direction
const { direction } = useTheme()

return (
<Modal
Expand Down

0 comments on commit 7260e67

Please sign in to comment.