@@ -9,46 +9,40 @@ import { Portal } from '../../../elements/Portal';
99import { basePromptElementStyles , PromptContainer } from '../shared' ;
1010
1111const EnableOrganizationsPromptInternal = ( props : __internal_EnableOrganizationsPromptProps ) => {
12- const ctaText = 'componentName' in props ? `<${ props . componentName } /> component ` : props . utilityName ;
12+ const ctaText = 'componentName' in props ? `<${ props . componentName } />` : props . utilityName ;
1313
1414 return (
1515 < Portal >
1616 < Modal
1717 canCloseModal = { false }
18- contentSx = { ( ) => ( { animation : 'unset ' } ) }
18+ containerSx = { ( ) => ( { alignItems : 'center ' } ) }
1919 >
2020 < PromptContainer
2121 sx = { ( ) => ( {
22- top : '50%' ,
23- left : '50%' ,
24- bottom : 'auto' ,
25- right : 'auto' ,
26- padding : 'unset' ,
27- transform : 'translate(-50%, -50%)' ,
22+ display : 'flex' ,
2823 flexDirection : 'column' ,
29- height : 'fit-content' ,
3024 } ) }
3125 >
3226 < Flex
27+ direction = 'col'
3328 sx = { t => ( {
34- display : 'flex' ,
35- flexDirection : 'column' ,
36- padding : `${ t . space . $5 } ${ t . space . $6 } ` ,
37- paddingBottom : t . space . $4 ,
38- gap : t . space . $2 ,
29+ padding : `${ t . sizes . $4 } ${ t . sizes . $6 } ` ,
30+ paddingBottom : t . sizes . $4 ,
31+ gap : t . sizes . $2 ,
3932 } ) }
4033 >
4134 < Flex
4235 as = 'header'
36+ align = 'center'
4337 sx = { t => ( {
44- display : 'flex' ,
45- alignItems : 'center' ,
46- gap : t . space . $2 ,
38+ gap : t . sizes . $2 ,
4739 } ) }
4840 >
4941 < svg
50- width = '20'
51- height = '20'
42+ css = { css `
43+ width : 1.25rem ;
44+ height : 1.25rem ;
45+ ` }
5246 viewBox = '0 0 20 20'
5347 fill = 'none'
5448 xmlns = 'http://www.w3.org/2000/svg'
@@ -79,58 +73,65 @@ const EnableOrganizationsPromptInternal = (props: __internal_EnableOrganizations
7973 </ svg >
8074
8175 < h1
82- css = { css `
83- ${ basePromptElementStyles } ;
84- color : white;
85- font- size: 0.875rem;
86- font- weight: 500;
87- ` }
76+ css = { [
77+ basePromptElementStyles ,
78+ css `
79+ color : white;
80+ font-size : 0.875rem ;
81+ font-weight : 500 ;
82+ ` ,
83+ ] }
8884 >
8985 Organizations feature required
9086 </ h1 >
9187 </ Flex >
9288
9389 < Flex
90+ direction = 'col'
9491 sx = { t => ( {
95- display : 'flex' ,
96- flexDirection : 'column' ,
97- gap : t . space . $0x5 ,
92+ gap : t . sizes . $0x5 ,
9893 } ) }
9994 >
10095 < span
101- css = { css `
102- ${ basePromptElementStyles } ;
103- color : # b4b4b4 ;
104- font- size: 0.8125rem;
105- font- weight: 400;
106- line-height: 1rem;
107- ` }
96+ css = { [
97+ basePromptElementStyles ,
98+ css `
99+ color : # b4b4b4 ;
100+ font-size : 0.8125rem ;
101+ font-weight : 400 ;
102+ line-height : 1rem ;
103+ ` ,
104+ ] }
108105 >
109106 To use the{ ' ' }
110107 < code
111- css = { css `
112- ${ basePromptElementStyles } ;
113- color : white;
114- ` }
108+ css = { [
109+ basePromptElementStyles ,
110+ css `
111+ color : white;
112+ ` ,
113+ ] }
115114 >
116115 { ctaText }
117116 </ code > { ' ' }
118- hook,
117+ { 'componentName' in props ? 'component' : ' hook' } ,
119118 < br />
120119 you’ll need to enable the Organizations feature
121120 < br />
122121 for your app first.
123122 </ span >
124123
125124 < a
126- css = { css `
127- ${ basePromptElementStyles } ;
128- color : # a8a8ff ;
129- font- size: inherit;
130- font- weight: 500;
131- line-height: 1rem;
132- font- size: 0.8125rem;
133- ` }
125+ css = { [
126+ basePromptElementStyles ,
127+ css `
128+ color : # a8a8ff ;
129+ font-size : inherit;
130+ font-weight : 500 ;
131+ line-height : 1rem ;
132+ font-size : 0.8125rem ;
133+ ` ,
134+ ] }
134135 href = 'https://clerk.com/docs/guides/organizations'
135136 target = '_blank'
136137 rel = 'noopener noreferrer'
@@ -152,11 +153,11 @@ const EnableOrganizationsPromptInternal = (props: __internal_EnableOrganizations
152153
153154 { /* TODO -> Introduce FAPI mutation to enable organizations */ }
154155 < Flex
156+ direction = 'col'
157+ justify = 'center'
155158 sx = { t => ( {
156- padding : `${ t . space . $4 } ${ t . space . $6 } ` ,
157- flexDirection : 'column' ,
158- gap : t . space . $3 ,
159- justifyContent : 'center' ,
159+ padding : `${ t . sizes . $4 } ${ t . sizes . $6 } ` ,
160+ gap : t . sizes . $3 ,
160161 } ) }
161162 >
162163 < button
0 commit comments