@@ -27,13 +27,10 @@ const QuestionAndDescription = styled.div`
27
27
div:first-child p:first-of-type {
28
28
font-size: 16px;
29
29
font-weight: 600;
30
+ margin: 0;
30
31
}
31
32
` ;
32
33
33
- const StyledReactMarkDown = styled ( ReactMarkdown ) `
34
- margin: 0px;
35
- ` ;
36
-
37
34
const VotingOptions = styled ( QuestionAndDescription ) `
38
35
display: flex;
39
36
flex-direction: column;
@@ -45,6 +42,10 @@ const AnswersContainer = styled.div`
45
42
flex-direction: column;
46
43
` ;
47
44
45
+ const AnswersHeader = styled . h3 `
46
+ margin: 0;
47
+ ` ;
48
+
48
49
const Answer = styled . div `
49
50
margin: 0px;
50
51
display: flex;
@@ -70,11 +71,11 @@ export const DisputeContext: React.FC<IDisputeContext> = ({ disputeDetails, isRp
70
71
const errMsg = isRpcError ? RPC_ERROR : INVALID_DISPUTE_DATA_ERROR ;
71
72
return (
72
73
< >
73
- < StyledH1 > { isUndefined ( disputeDetails ) ? < StyledSkeleton /> : disputeDetails ?. title ?? errMsg } </ StyledH1 >
74
+ < StyledH1 > { isUndefined ( disputeDetails ) ? < StyledSkeleton /> : ( disputeDetails ?. title ?? errMsg ) } </ StyledH1 >
74
75
{ ! isUndefined ( disputeDetails ) && (
75
76
< QuestionAndDescription >
76
- < StyledReactMarkDown > { disputeDetails ?. question } </ StyledReactMarkDown >
77
- < StyledReactMarkDown > { disputeDetails ?. description } </ StyledReactMarkDown >
77
+ < ReactMarkdown > { disputeDetails ?. question } </ ReactMarkdown >
78
+ < ReactMarkdown > { disputeDetails ?. description } </ ReactMarkdown >
78
79
</ QuestionAndDescription >
79
80
) }
80
81
{ isUndefined ( disputeDetails ?. frontendUrl ) ? null : (
@@ -83,7 +84,7 @@ export const DisputeContext: React.FC<IDisputeContext> = ({ disputeDetails, isRp
83
84
</ a >
84
85
) }
85
86
< VotingOptions >
86
- { isUndefined ( disputeDetails ) ? null : < h3 > Voting Options</ h3 > }
87
+ { isUndefined ( disputeDetails ) ? null : < AnswersHeader > Voting Options</ AnswersHeader > }
87
88
< AnswersContainer >
88
89
{ disputeDetails ?. answers ?. map ( ( answer : IAnswer , i : number ) => (
89
90
< Answer key = { answer . title } >
0 commit comments