@@ -2,8 +2,8 @@ import styled from "styled-components";
22import Image from "next/image" ;
33import { Icon } from "../Icon/Icon" ;
44
5- export const RetractIcon = styled ( Icon ) < { position : "left" | "right" } > `
6- ${ ( { position } ) => position === "right" && "transform: rotate(180deg)" } ;
5+ export const RetractIcon = styled ( Icon ) < { $ position : "left" | "right" } > `
6+ ${ ( { $ position } ) => $ position === "right" && "transform: rotate(180deg)" } ;
77 cursor: pointer;
88 transition: 300ms;
99
@@ -25,9 +25,9 @@ export const MenuImage = styled(Icon)`
2525 }
2626` ;
2727
28- export const Background = styled . div < { retracted : string } > `
29- display: ${ ( { retracted } ) => ( retracted === "true" ? "none" : "flex" ) } ;
30- animation: ${ ( props ) => ( props . retracted === "true" ? "fadeOut" : "fadeIn" ) }
28+ export const Background = styled . div < { $ retracted : string } > `
29+ display: ${ ( { $ retracted } ) => ( $ retracted === "true" ? "none" : "flex" ) } ;
30+ animation: ${ ( props ) => ( props . $ retracted === "true" ? "fadeOut" : "fadeIn" ) }
3131 0.5s ease-in-out;
3232 width: 100vw;
3333 height: 100svh;
@@ -58,7 +58,10 @@ export const Background = styled.div<{ retracted: string }>`
5858 }
5959` ;
6060
61- export const ModalWrapper = styled . div < { retracted : string ; position : string } > `
61+ export const ModalWrapper = styled . div < {
62+ $retracted : string ;
63+ $position : string ;
64+ } > `
6265 position: fixed;
6366 top: 50%;
6467 bottom: 50%;
@@ -81,8 +84,8 @@ export const ModalWrapper = styled.div<{ retracted: string; position: string }>`
8184 }
8285
8386 ${ ( props ) => {
84- const { position, retracted } = props ;
85- const isLeft = position === "left" ;
87+ const { $ position, $ retracted } = props ;
88+ const isLeft = $ position === "left" ;
8689
8790 const transformExpanded = isLeft
8891 ? "translateX(0.5rem)"
@@ -93,7 +96,7 @@ export const ModalWrapper = styled.div<{ retracted: string; position: string }>`
9396
9497 return `
9598 ${ isLeft ? "left: 0;" : "right: 0;" }
96- transform: ${ retracted === "true" ? transformRetracted : transformExpanded } ;
99+ transform: ${ $ retracted === "true" ? transformRetracted : transformExpanded } ;
97100 ` ;
98101 } }
99102` ;
@@ -108,7 +111,7 @@ export const OcaImage = styled(Image)`
108111 height: fit-content;
109112` ;
110113
111- export const RetractImage = styled ( Image ) < { position : string } > `
114+ export const RetractImage = styled ( Image ) < { $ position : string } > `
112115 max-width: 1.25rem;
113116 height: fit-content;
114117 transition: 0.2s;
@@ -120,7 +123,7 @@ export const RetractImage = styled(Image)<{ position: string }>`
120123 }
121124
122125 ${ ( props ) =>
123- props . position === "right" &&
126+ props . $ position === "right" &&
124127 `
125128 transform: rotate(180deg);
126129
0 commit comments