File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ function ContactUsForm({ subscribe, setResponseMessage }) {
102
102
//no white space pattern
103
103
pattern : / [ ^ \s - ] / i,
104
104
} ) }
105
- $inputType = 'name'
106
105
/>
107
106
< S . ErrorMsg >
108
107
{ errors . Name ?. type === 'required'
@@ -120,7 +119,6 @@ function ContactUsForm({ subscribe, setResponseMessage }) {
120
119
required : true ,
121
120
pattern : / ^ \S + @ \S + $ / i,
122
121
} ) }
123
- $inputType = 'email'
124
122
/>
125
123
< S . ErrorMsg >
126
124
{ errors . Email ?. type === 'required' && 'Email is required' }
@@ -133,7 +131,6 @@ function ContactUsForm({ subscribe, setResponseMessage }) {
133
131
minLength : 2 ,
134
132
pattern : / [ ^ \s - ] / i,
135
133
} ) }
136
- $inputType = 'email'
137
134
/>
138
135
< S . ErrorMsg >
139
136
{ errors . Subject ?. type === 'required'
@@ -151,7 +148,6 @@ function ContactUsForm({ subscribe, setResponseMessage }) {
151
148
pattern : / [ ^ \s - ] / i,
152
149
} ) }
153
150
placeholder = 'Write your message here'
154
- $inputType = 'message'
155
151
/>
156
152
< S . ErrorMsg >
157
153
{ errors . Message ?. type === 'required'
Original file line number Diff line number Diff line change @@ -59,20 +59,18 @@ const Input = styled.input`
59
59
border-radius: 3rem;
60
60
max-width: 25rem;
61
61
` ) }
62
-
63
- //check props for button variations
64
- ${ props => ( props . $inputType === 'message' ? InputMessage : '' ) }
65
62
` ;
66
63
67
64
const TextArea = styled . textarea `
68
65
display: block;
69
66
font-size: 1.2rem;
70
67
border-radius: 1rem;
71
- height: 2rem ;
68
+ height: 13rem ;
72
69
padding: 1.2rem 1.25rem;
73
70
border: 1px solid ${ $darkBgColor } ;
74
71
max-width: 100%;
75
72
width: 24rem;
73
+ font-family: inherit;
76
74
77
75
&::placeholder {
78
76
color: ${ $primaryContentColor } ;
@@ -85,21 +83,10 @@ const TextArea = styled.textarea`
85
83
//media query mixins
86
84
${ m . largeDesktop ( css `
87
85
font-size: 1.5rem;
88
- height: 3rem;
89
86
border-radius: 3rem;
90
87
max-width: 25rem;
91
88
` ) }
92
89
93
- //check props for button variations
94
- ${ props => ( props . $inputType === 'message' ? InputMessage : '' ) }
95
- ` ;
96
-
97
- const InputMessage = css `
98
- font-family: inherit;
99
- height: 13rem !important;
100
- border-radius: 1rem;
101
-
102
- //media query mixins
103
90
${ m . desktop ( css `
104
91
border-radius: 1.5rem;
105
92
` ) }
You can’t perform that action at this time.
0 commit comments