1- import { Radio } from "antd" ;
21import { useTranslation } from "next-i18next" ;
32import React from "react" ;
43import AletheiaButton , { ButtonType } from "../Button" ;
54import ClassificationText from "../ClassificationText" ;
65import { AletheiaModal , ModalCancelButton } from "../Modal/AletheiaModal.style" ;
6+ import { Radio , RadioGroup , FormControlLabel } from "@mui/material" ;
7+ import styled from "styled-components" ;
78
89const ClassificationModal = ( {
910 open,
@@ -17,6 +18,17 @@ const ClassificationModal = ({
1718 setValue ( e . target . value ) ;
1819 } ;
1920
21+ const StyledRadio = styled ( Radio ) `
22+ padding: 4px;
23+ transform: scale(0.8);
24+ ` ;
25+
26+ const classificationTextStyle = {
27+ fontFamily : 'Open Sans, sans-serif' ,
28+ fontWeight : "bold" ,
29+ fontSize : "14px" ,
30+ } ;
31+
2032 return (
2133 < AletheiaModal
2234 open = { open }
@@ -29,7 +41,7 @@ const ClassificationModal = ({
2941 alingItens : "center" ,
3042 } }
3143 >
32- < Radio . Group
44+ < RadioGroup
3345 onChange = { onChangeRadio }
3446 value = { value }
3547 style = { {
@@ -38,34 +50,52 @@ const ClassificationModal = ({
3850 flexDirection : "column" ,
3951 } }
4052 >
41- < Radio value = "not-fact" >
42- < ClassificationText classification = "not-fact" />
43- </ Radio >
44- < Radio value = "trustworthy" >
45- < ClassificationText classification = "trustworthy" />
46- </ Radio >
47- < Radio value = "trustworthy-but" >
48- < ClassificationText classification = "trustworthy-but" />
49- </ Radio >
50- < Radio value = "arguable" >
51- < ClassificationText classification = "arguable" />
52- </ Radio >
53- < Radio value = "misleading" >
54- < ClassificationText classification = "misleading" />
55- </ Radio >
56- < Radio value = "false" >
57- < ClassificationText classification = "false" />
58- </ Radio >
59- < Radio value = "unsustainable" >
60- < ClassificationText classification = "unsustainable" />
61- </ Radio >
62- < Radio value = "exaggerated" >
63- < ClassificationText classification = "exaggerated" />
64- </ Radio >
65- < Radio value = "unverifiable" >
66- < ClassificationText classification = "unverifiable" />
67- </ Radio >
68- </ Radio . Group >
53+ < FormControlLabel
54+ value = "not-fact"
55+ control = { < StyledRadio /> }
56+ label = { < ClassificationText classification = "not-fact" style = { classificationTextStyle } /> }
57+ />
58+ < FormControlLabel
59+ value = "trustworthy"
60+ control = { < StyledRadio /> }
61+ label = { < ClassificationText classification = "trustworthy" style = { classificationTextStyle } /> }
62+ />
63+ < FormControlLabel
64+ value = "trustworthy-but"
65+ control = { < StyledRadio /> }
66+ label = { < ClassificationText classification = "trustworthy-but" style = { classificationTextStyle } /> }
67+ />
68+ < FormControlLabel
69+ value = "arguable"
70+ control = { < StyledRadio /> }
71+ label = { < ClassificationText classification = "arguable" style = { classificationTextStyle } /> }
72+ />
73+ < FormControlLabel
74+ value = "misleading"
75+ control = { < StyledRadio /> }
76+ label = { < ClassificationText classification = "misleading" style = { classificationTextStyle } /> }
77+ />
78+ < FormControlLabel
79+ value = "false"
80+ control = { < StyledRadio /> }
81+ label = { < ClassificationText classification = "false" style = { classificationTextStyle } /> }
82+ />
83+ < FormControlLabel
84+ value = "unsustainable"
85+ control = { < StyledRadio /> }
86+ label = { < ClassificationText classification = "unsustainable" style = { classificationTextStyle } /> }
87+ />
88+ < FormControlLabel
89+ value = "exaggerated"
90+ control = { < StyledRadio /> }
91+ label = { < ClassificationText classification = "exaggerated" style = { classificationTextStyle } /> }
92+ />
93+ < FormControlLabel
94+ value = "unverifiable"
95+ control = { < StyledRadio /> }
96+ label = { < ClassificationText classification = "unverifiable" style = { classificationTextStyle } /> }
97+ />
98+ </ RadioGroup >
6999 < div
70100 style = { {
71101 marginTop : 30 ,
0 commit comments