@@ -2,8 +2,10 @@ import styled from "styled-components";
22import { useState , useEffect , useMemo } from "react" ;
33import moment from "moment-jalaali" ;
44import { useLanguage } from "../../../../services/reducers/LanguageContext" ;
5- import { convertToPersian , getFieldTranslationByNames } from "../../../../services/Utility" ;
6- import { Label } from "../../../../components/editorContainerStyle" ;
5+ import {
6+ convertToPersian ,
7+ getFieldTranslationByNames ,
8+ } from "../../../../services/Utility" ;
79
810const Container = styled . div `
911 position: relative;
@@ -12,6 +14,14 @@ const Container = styled.div`
1214 padding-top: 30px;
1315` ;
1416
17+ const Label = styled . h2 `
18+ color: ${ ( props ) => props . theme . colors . newColors . shades . title } ;
19+ display: block;
20+ margin-bottom: 10px;
21+ font-weight: 500;
22+ font-size: 16px;
23+ margin-top: 20px;
24+ ` ;
1525const DropdownButton = styled . div `
1626 background-color: ${ ( props ) =>
1727 props . theme . colors . newColors . otherColors . inputBg } ;
@@ -93,7 +103,7 @@ const CurrentYears = () => {
93103 const startYear = isPersian ? 1401 : 2022 ;
94104 return Array . from (
95105 { length : currentYear - startYear + 1 } ,
96- ( _ , i ) => startYear + i
106+ ( _ , i ) => startYear + i ,
97107 ) . reverse ( ) ;
98108 } , [ currentYear , isPersian ] ) ;
99109
@@ -109,7 +119,11 @@ const CurrentYears = () => {
109119 < div >
110120 < DropdownButton onClick = { ( ) => setIsOpen ( ! isOpen ) } >
111121 < span > { convertToPersian ( selectedYear ) } </ span >
112- < Arrow style = { { transform : isOpen ? "rotate(-135deg)" : "rotate(45deg)" } } />
122+ < Arrow
123+ style = { {
124+ transform : isOpen ? "rotate(-135deg)" : "rotate(45deg)" ,
125+ } }
126+ />
113127 </ DropdownButton >
114128
115129 { isOpen && (
0 commit comments