diff --git a/src/components/court-cascader-modal.js b/src/components/court-cascader-modal.js index 622340d..3fb15fe 100644 --- a/src/components/court-cascader-modal.js +++ b/src/components/court-cascader-modal.js @@ -1,4 +1,4 @@ -import { Button, Cascader, Col, Modal, Row, Skeleton, Tooltip } from "antd"; +import { Button, Cascader, Col, Modal, Row, Skeleton, Tooltip, Typography } from "antd"; import React, { useCallback, useState } from "react"; import PropTypes from "prop-types"; import ReactMarkdown from "react-markdown"; @@ -136,10 +136,11 @@ const CourtCascaderModal = ({ onClick }) => { - - {option.label} | Min Stake = -
- Each vote has a stake of{" "} + + {option.label} + + Min Stake = | Each vote has a stake + of{" "} { tokenSymbol="PNK" /> . -
-
+ + - + {option.requiredSkills ? ( - - - + + - skills + + skills - - Required Skills + + Required Skills +
) : null} - - - - - reward + + + + + reward - - Reward + + Reward
For each coherent vote you will receive{" "} @@ -224,6 +226,24 @@ const StyledModal = styled(Modal)` width: 90% !important; height: 90vh; + h1 { + font-size: 20px; + font-weight: bolder; + color: #4d00b4; + } + + h2 { + font-size: 18px; + font-weight: bolder; + color: #4d00b4; + } + + h3 { + font-size: 16px; + font-weight: bolder; + color: #4d00b4; + } + .ant-modal { &-header { border: none; @@ -287,11 +307,6 @@ const StyledButton = styled(Button)` } `; -const StyledHeader = styled.div` - ffnt-size: 18px; - font-weight: bold; -`; - const StyledCascader = styled(Cascader)` display: none; @@ -358,10 +373,17 @@ const StyledCascader = styled(Cascader)` `; const StyledPrefixDiv = styled.div` - left: 29px; position: absolute; - top: 29px; transform: translate(-50%, -50%); + left: 8px; + top: 36px; + + img { + position: absolute; + right: 50%; + top: 50%; + transform: translate(50%, -50%); + } `; const StyledPolicyWrapper = styled.div` @@ -371,11 +393,11 @@ const StyledPolicyWrapper = styled.div` const StyledPolicyRow = styled(Row)` overflow: auto; - max-height: 100%; + height: 100%; `; -const StyledPolicySection = styled.section` - font-size: 18px; - font-weight: bold; - margin-bottom: 20px; +const StyledMinStakeDisplay = styled.div` + font-weight: 400; + font-size: 12px; + margin: 3px 0 20px 0; `;