File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
plugins/backstage-plugin-coder/src/components/CoderAuthFormCardWrapper Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,25 @@ import {
55 type CoderAuthFormProps ,
66 CoderAuthForm ,
77} from '../CoderAuthForm/CoderAuthForm' ;
8+ import { makeStyles } from '@material-ui/core' ;
89
910type Props = A11yInfoCardProps & CoderAuthFormProps ;
1011
12+ const useStyles = makeStyles ( theme => ( {
13+ root : {
14+ paddingTop : theme . spacing ( 6 ) ,
15+ paddingBottom : theme . spacing ( 6 ) ,
16+ } ,
17+ } ) ) ;
18+
1119export function CoderAuthFormCardWrapper ( {
1220 children,
1321 headerContent,
1422 descriptionId,
1523 ...delegatedCardProps
1624} : Props ) {
1725 const { isAuthenticated } = useInternalCoderAuth ( ) ;
26+ const styles = useStyles ( ) ;
1827
1928 return (
2029 < A11yInfoCard
@@ -28,7 +37,9 @@ export function CoderAuthFormCardWrapper({
2837 { isAuthenticated ? (
2938 < > { children } </ >
3039 ) : (
31- < CoderAuthForm descriptionId = { descriptionId } />
40+ < div className = { styles . root } >
41+ < CoderAuthForm descriptionId = { descriptionId } />
42+ </ div >
3243 ) }
3344 </ A11yInfoCard >
3445 ) ;
You can’t perform that action at this time.
0 commit comments