@@ -38,7 +38,7 @@ const ListIntervals = ({ addInterval, removeInterval, setFormData }: any) => {
3838
3939 return (
4040 < >
41- { intervals . map ( ( currentValue : number [ ] , index : number ) => (
41+ { intervals . map ( ( _currentValue : number [ ] , index : number ) => (
4242 < div
4343 className = "w-full flex flex-col justify-center items-center mb-4"
4444 key = { index }
@@ -70,10 +70,10 @@ const ListIntervals = ({ addInterval, removeInterval, setFormData }: any) => {
7070 />
7171
7272 < div
73- className = 'flex max-[500px]:absolute max-[500px]:-bottom-full'
73+ className = 'flex max-[500px]:absolute gap-[15px] max-[500px]:-bottom-full'
7474 >
7575 < button
76- className = "w-[35px] h-[35px] rounded-[25px] ml-[20px] "
76+ className = "w-[35px] h-[35px] rounded-[25px]"
7777 onClick = { ( ) => addInterval ( ) }
7878 >
7979 < Image
@@ -84,9 +84,9 @@ const ListIntervals = ({ addInterval, removeInterval, setFormData }: any) => {
8484 />
8585 </ button >
8686
87- { intervals . length > 1 ? (
87+ { intervals . length > 1 && (
8888 < button
89- className = "w-[35px] h-[35px] rounded-[25px] ml-[15px] "
89+ className = "w-[35px] h-[35px] rounded-[25px]"
9090 onClick = { ( ) => removeInterval ( ) }
9191 >
9292 < Image
@@ -96,8 +96,6 @@ const ListIntervals = ({ addInterval, removeInterval, setFormData }: any) => {
9696 alt = "remove"
9797 />
9898 </ button >
99- ) : (
100- < button className = "w-[35px] h-[35px] rounded-[25px] ml-[15px] z-[-1]" > </ button >
10199 ) }
102100 </ div >
103101 </ div >
0 commit comments