File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
apps/app/components/Register Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -186,15 +186,17 @@ function Register({ cities }: any) {
186186 </ Form . Item >
187187 ) }
188188
189- < Form . Item name = "user[t_shirt]" label = "Tamanho da T-Shirt" >
190- < Select defaultValue = "medium" >
191- < Option value = "extra_small" > Muito Pequeno (XS)</ Option >
192- < Option value = "small" > Pequeno (S)</ Option >
193- < Option value = "medium" > Médio (M)</ Option >
194- < Option value = "large" > Grande (L)</ Option >
195- < Option value = "extra_large" > Muito Grande (XL)</ Option >
196- </ Select >
197- </ Form . Item >
189+ { user ?. role == EUser . Mentor && (
190+ < Form . Item name = "user[t_shirt]" label = "Tamanho da T-Shirt" >
191+ < Select defaultValue = "medium" >
192+ < Option value = "extra_small" > Muito Pequeno (XS)</ Option >
193+ < Option value = "small" > Pequeno (S)</ Option >
194+ < Option value = "medium" > Médio (M)</ Option >
195+ < Option value = "large" > Grande (L)</ Option >
196+ < Option value = "extra_large" > Muito Grande (XL)</ Option >
197+ </ Select >
198+ </ Form . Item >
199+ ) }
198200
199201 < Form . Item
200202 name = "user[photo]"
You can’t perform that action at this time.
0 commit comments