Skip to content

Commit

Permalink
feat(web): option-description-display-in-dispute-context
Browse files Browse the repository at this point in the history
  • Loading branch information
Harman-singh-waraich committed Jan 9, 2024
1 parent 97d0b99 commit a4a3918
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions web/src/components/DisputePreview/DisputeContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { StyledSkeleton } from "components/StyledSkeleton";
import { isUndefined } from "utils/index";
import { Answer as IAnswer, IDisputeTemplate } from "context/NewDisputeContext";
import AliasDisplay from "./Alias";
import { responsiveSize } from "styles/responsiveSize";

const StyledH1 = styled.h1`
margin: 0;
Expand Down Expand Up @@ -37,12 +38,14 @@ const AnswersContainer = styled.div`
const Answer = styled.div`
margin: 0px;
display: flex;
gap: 8px;
flex-wrap: wrap;
gap: ${responsiveSize(2, 8)};
`;

const AliasesContainer = styled.div`
display: flex;
gap: 20px;
flex-wrap: wrap;
gap: ${responsiveSize(8, 20)};
`;

const Divider = styled.hr`
Expand Down Expand Up @@ -84,7 +87,10 @@ export const DisputeContext: React.FC<IDisputeContext> = ({ disputeTemplate }) =
{disputeTemplate?.answers?.map((answer: IAnswer, i: number) => (
<Answer key={answer.title}>
<small>Option {i + 1}:</small>
<label>{answer.title}</label>
<label>
{answer.title}
{answer.description ? ` - ${answer.description}` : null}
</label>
</Answer>
))}
</AnswersContainer>
Expand Down

0 comments on commit a4a3918

Please sign in to comment.