diff --git a/src/components/common/ContentButtons/SuperLike.tsx b/src/components/common/ContentButtons/SuperLike.tsx index a2008ef..48e702c 100644 --- a/src/components/common/ContentButtons/SuperLike.tsx +++ b/src/components/common/ContentButtons/SuperLike.tsx @@ -6,6 +6,8 @@ import { InputLabel, Modal, Tooltip, + useMediaQuery, + useTheme, } from "@mui/material"; import React, { useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; @@ -16,7 +18,11 @@ import { FOR_SUPER_LIKE, SUPER_LIKE_BASE, } from "../../../constants/Identifiers.ts"; -import { minPriceSuperlike } from "../../../constants/Misc.ts"; +import { + fontSizeLarge, + fontSizeMedium, + minPriceSuperlike, +} from "../../../constants/Misc.ts"; import { setNotification } from "../../../state/features/notificationsSlice.ts"; import { RootState } from "../../../state/store.ts"; import BoundedNumericTextField from "../../../utils/BoundedNumericTextField.tsx"; @@ -173,7 +179,8 @@ export const SuperLike = ({ }); }, []); - const textFieldWidth = "350px"; + const isScreenSmall = !useMediaQuery(`(min-width:400px)`); + const theme = useTheme(); return ( <> - + Super Like - + - - Amount in QORT (min 1 QORT) + + Amount setSuperlikeDonationAmount(+e)} InputProps={{ - style: { fontSize: 30, width: textFieldWidth }, + style: { + fontSize: fontSizeMedium, + width: "80%", + border: `1px solid ${theme.palette.primary.main}`, + }, startAdornment: ( -
Current QORT Balance is: {currentBalance}
+ + {"Qort + Balance: {currentBalance} + setComment(e.target.value)} + sx={{ border: `1px solid ${theme.palette.primary.main}` }} />
- { - setIsOpen(false); - resetValues(); - onClose(); - }} - variant="contained" - color="error" - > - Cancel - + { + setIsOpen(false); + resetValues(); + onClose(); + }} + variant="contained" + color="error" + > + Cancel + + { publishSuperLike(); }} > - Publish Super Like + Publish