@@ -27,13 +27,10 @@ const QuestionAndDescription = styled.div`
2727 div:first-child p:first-of-type {
2828 font-size: 16px;
2929 font-weight: 600;
30+ margin: 0;
3031 }
3132` ;
3233
33- const StyledReactMarkDown = styled ( ReactMarkdown ) `
34- margin: 0px;
35- ` ;
36-
3734const VotingOptions = styled ( QuestionAndDescription ) `
3835 display: flex;
3936 flex-direction: column;
@@ -45,6 +42,10 @@ const AnswersContainer = styled.div`
4542 flex-direction: column;
4643` ;
4744
45+ const AnswersHeader = styled . h3 `
46+ margin: 0;
47+ ` ;
48+
4849const Answer = styled . div `
4950 margin: 0px;
5051 display: flex;
@@ -70,11 +71,11 @@ export const DisputeContext: React.FC<IDisputeContext> = ({ disputeDetails, isRp
7071 const errMsg = isRpcError ? RPC_ERROR : INVALID_DISPUTE_DATA_ERROR ;
7172 return (
7273 < >
73- < StyledH1 > { isUndefined ( disputeDetails ) ? < StyledSkeleton /> : disputeDetails ?. title ?? errMsg } </ StyledH1 >
74+ < StyledH1 > { isUndefined ( disputeDetails ) ? < StyledSkeleton /> : ( disputeDetails ?. title ?? errMsg ) } </ StyledH1 >
7475 { ! isUndefined ( disputeDetails ) && (
7576 < QuestionAndDescription >
76- < StyledReactMarkDown > { disputeDetails ?. question } </ StyledReactMarkDown >
77- < StyledReactMarkDown > { disputeDetails ?. description } </ StyledReactMarkDown >
77+ < ReactMarkdown > { disputeDetails ?. question } </ ReactMarkdown >
78+ < ReactMarkdown > { disputeDetails ?. description } </ ReactMarkdown >
7879 </ QuestionAndDescription >
7980 ) }
8081 { isUndefined ( disputeDetails ?. frontendUrl ) ? null : (
@@ -83,7 +84,7 @@ export const DisputeContext: React.FC<IDisputeContext> = ({ disputeDetails, isRp
8384 </ a >
8485 ) }
8586 < VotingOptions >
86- { isUndefined ( disputeDetails ) ? null : < h3 > Voting Options</ h3 > }
87+ { isUndefined ( disputeDetails ) ? null : < AnswersHeader > Voting Options</ AnswersHeader > }
8788 < AnswersContainer >
8889 { disputeDetails ?. answers ?. map ( ( answer : IAnswer , i : number ) => (
8990 < Answer key = { answer . title } >
0 commit comments