от до для рейнж
This commit is contained in:
parent
c7ac1dbc93
commit
8949585201
@ -5,7 +5,7 @@ import { DateCalendar } from "@mui/x-date-pickers";
|
|||||||
import { quizThemes } from "@utils/themes/Publication/themePublication";
|
import { quizThemes } from "@utils/themes/Publication/themePublication";
|
||||||
import type { Moment } from "moment";
|
import type { Moment } from "moment";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import { Paper, useTheme } from "@mui/material";
|
import { Box, Paper, TextField, useTheme } from "@mui/material";
|
||||||
import { useRootContainerSize } from "@/contexts/RootContainerWidthContext";
|
import { useRootContainerSize } from "@/contexts/RootContainerWidthContext";
|
||||||
|
|
||||||
type DateProps = {
|
type DateProps = {
|
||||||
@ -46,8 +46,11 @@ export default ({ currentQuestion }: DateProps) => {
|
|||||||
display: "inline-flex",
|
display: "inline-flex",
|
||||||
flexWrap: "wrap",
|
flexWrap: "wrap",
|
||||||
marginTop: "20px",
|
marginTop: "20px",
|
||||||
|
p: "20px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<Box>
|
||||||
|
<span style={{ marginLeft: "25px", color: theme.palette.text.primary }}>От</span>
|
||||||
<DateCalendar
|
<DateCalendar
|
||||||
sx={{
|
sx={{
|
||||||
"& .MuiInputBase-root": {
|
"& .MuiInputBase-root": {
|
||||||
@ -68,6 +71,9 @@ export default ({ currentQuestion }: DateProps) => {
|
|||||||
value={currentFrom}
|
value={currentFrom}
|
||||||
onChange={(data) => onDateChange(data, 0)}
|
onChange={(data) => onDateChange(data, 0)}
|
||||||
/>
|
/>
|
||||||
|
</Box>
|
||||||
|
<Box>
|
||||||
|
<span style={{ marginLeft: "25px", color: theme.palette.text.primary }}>До</span>
|
||||||
<DateCalendar
|
<DateCalendar
|
||||||
sx={{
|
sx={{
|
||||||
"& .MuiInputBase-root": {
|
"& .MuiInputBase-root": {
|
||||||
@ -88,6 +94,7 @@ export default ({ currentQuestion }: DateProps) => {
|
|||||||
value={currentTo}
|
value={currentTo}
|
||||||
onChange={(data) => onDateChange(data, 1)}
|
onChange={(data) => onDateChange(data, 1)}
|
||||||
/>
|
/>
|
||||||
|
</Box>
|
||||||
</Paper>
|
</Paper>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -28,7 +28,7 @@ export const Images = ({ currentQuestion }: ImagesProps) => {
|
|||||||
{currentQuestion.title}
|
{currentQuestion.title}
|
||||||
</Typography>
|
</Typography>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name={currentQuestion.id}
|
name={currentQuestion.id.toString()}
|
||||||
value={currentQuestion.content.variants.findIndex(({ id }) => answer === id)}
|
value={currentQuestion.content.variants.findIndex(({ id }) => answer === id)}
|
||||||
sx={{
|
sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
|
Loading…
Reference in New Issue
Block a user