Adjust report center to use radio groups.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { useLazyQuery } from "@apollo/client";
|
import { useLazyQuery } from "@apollo/client";
|
||||||
import { Button, DatePicker, Form, Radio, Select } from "antd";
|
import { Button, DatePicker, Form, Radio } from "antd";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
@@ -96,11 +96,13 @@ export function ReportCenterModalComponent({ reportCenterModal }) {
|
|||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Select>
|
<Radio.Group style={{ columns: "3 auto" }}>
|
||||||
{Object.keys(Templates).map((key) => (
|
{Object.keys(Templates).map((key) => (
|
||||||
<Select.Option key={key}>{Templates[key].title}</Select.Option>
|
<Radio key={key} value={key}>
|
||||||
|
{Templates[key].title}
|
||||||
|
</Radio>
|
||||||
))}
|
))}
|
||||||
</Select>
|
</Radio.Group>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item dependencies={["key"]}>
|
<Form.Item dependencies={["key"]}>
|
||||||
{() => {
|
{() => {
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ export function ReportCenterModalContainer({
|
|||||||
onCancel={() => toggleModalVisible()}
|
onCancel={() => toggleModalVisible()}
|
||||||
cancelButtonProps={{ style: { display: "none" } }}
|
cancelButtonProps={{ style: { display: "none" } }}
|
||||||
destroyOnClose
|
destroyOnClose
|
||||||
|
width="60%"
|
||||||
>
|
>
|
||||||
<ReportCenterModalComponent />
|
<ReportCenterModalComponent />
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|||||||
Reference in New Issue
Block a user