@@ -31,6 +31,14 @@ import { CancelIcon } from 'uiSrc/components/base/icons'
3131import { CloudSubscriptionPlanResponse } from 'apiSrc/modules/cloud/subscription/dto'
3232import { OAuthProvider , OAuthProviders } from './constants'
3333import styles from './styles.module.scss'
34+ import {
35+ StyledFooter ,
36+ StyledModalContentBody ,
37+ StyledRegion ,
38+ StyledRegionName ,
39+ StyledRegionSelectDescription ,
40+ StyledSubTitle ,
41+ } from './OAuthSelectPlan.styles'
3442
3543export const DEFAULT_REGIONS = [ 'us-east-2' , 'asia-northeast1' ]
3644export const DEFAULT_PROVIDER = OAuthProvider . AWS
@@ -127,7 +135,7 @@ const OAuthSelectPlan = () => {
127135 data-test-subj = { `oauth-region-${ region } ` }
128136 >
129137 { `${ countryName } (${ cityName } )` }
130- < ColorText className = { styles . regionName } > { region } </ ColorText >
138+ < StyledRegionName > { region } </ StyledRegionName >
131139 { rsProviderRegions ?. includes ( region ) && (
132140 < ColorText
133141 className = { styles . rspreview }
@@ -174,10 +182,7 @@ const OAuthSelectPlan = () => {
174182
175183 return (
176184 < Modal . Compose open >
177- < Modal . Content . Compose
178- className = { styles . container }
179- data-testid = "oauth-select-plan-dialog"
180- >
185+ < Modal . Content . Compose data-testid = "oauth-select-plan-dialog" >
181186 < Modal . Content . Close
182187 icon = { CancelIcon }
183188 onClick = { handleOnClose }
@@ -189,12 +194,12 @@ const OAuthSelectPlan = () => {
189194 </ Row >
190195 </ Modal . Content . Header . Title >
191196 < Modal . Content . Body . Compose width = "fit-content" >
192- < section className = { styles . content } >
193- < Text className = { styles . subTitle } color = "default" >
197+ < StyledModalContentBody >
198+ < StyledSubTitle color = "default" >
194199 Select a cloud vendor and region to complete the final step
195200 towards your free Redis Cloud database. No credit card is
196201 required.
197- </ Text >
202+ </ StyledSubTitle >
198203 < section className = { styles . providers } >
199204 { OAuthProviders . map ( ( { icon, id, label } ) => {
200205 const Icon = ( ) => (
@@ -215,12 +220,12 @@ const OAuthSelectPlan = () => {
215220 [ styles . activeProvider ] : id === providerSelected ,
216221 } ) }
217222 />
218- < Text className = { styles . providerLabel } > { label } </ Text >
223+ < Text > { label } </ Text >
219224 </ div >
220225 )
221226 } ) }
222227 </ section >
223- < section className = { styles . region } >
228+ < StyledRegion >
224229 < Text className = { styles . regionLabel } > Region</ Text >
225230 < RiSelect
226231 loading = { loading }
@@ -237,15 +242,15 @@ const OAuthSelectPlan = () => {
237242 } }
238243 />
239244 { ! regionOptions . length && (
240- < Text
245+ < StyledRegionSelectDescription
241246 className = { styles . selectDescription }
242247 data-testid = "select-region-select-description"
243248 >
244249 No regions available, try another vendor.
245- </ Text >
250+ </ StyledRegionSelectDescription >
246251 ) }
247- </ section >
248- < footer className = { styles . footer } >
252+ </ StyledRegion >
253+ < StyledFooter >
249254 < Row justify = "end" gap = "m" >
250255 < SecondaryButton
251256 onClick = { handleOnClose }
@@ -264,8 +269,8 @@ const OAuthSelectPlan = () => {
264269 Create database
265270 </ PrimaryButton >
266271 </ Row >
267- </ footer >
268- </ section >
272+ </ StyledFooter >
273+ </ StyledModalContentBody >
269274 </ Modal . Content . Body . Compose >
270275 </ Modal . Content . Compose >
271276 </ Modal . Compose >
0 commit comments