File tree 1 file changed +12
-1
lines changed
plugins/backstage-plugin-coder/src/components/CoderAuthFormCardWrapper
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,25 @@ import {
5
5
type CoderAuthFormProps ,
6
6
CoderAuthForm ,
7
7
} from '../CoderAuthForm/CoderAuthForm' ;
8
+ import { makeStyles } from '@material-ui/core' ;
8
9
9
10
type Props = A11yInfoCardProps & CoderAuthFormProps ;
10
11
12
+ const useStyles = makeStyles ( theme => ( {
13
+ root : {
14
+ paddingTop : theme . spacing ( 6 ) ,
15
+ paddingBottom : theme . spacing ( 6 ) ,
16
+ } ,
17
+ } ) ) ;
18
+
11
19
export function CoderAuthFormCardWrapper ( {
12
20
children,
13
21
headerContent,
14
22
descriptionId,
15
23
...delegatedCardProps
16
24
} : Props ) {
17
25
const { isAuthenticated } = useInternalCoderAuth ( ) ;
26
+ const styles = useStyles ( ) ;
18
27
19
28
return (
20
29
< A11yInfoCard
@@ -28,7 +37,9 @@ export function CoderAuthFormCardWrapper({
28
37
{ isAuthenticated ? (
29
38
< > { children } </ >
30
39
) : (
31
- < CoderAuthForm descriptionId = { descriptionId } />
40
+ < div className = { styles . root } >
41
+ < CoderAuthForm descriptionId = { descriptionId } />
42
+ </ div >
32
43
) }
33
44
</ A11yInfoCard >
34
45
) ;
You can’t perform that action at this time.
0 commit comments