@@ -7,7 +7,6 @@ import Link from '@material-ui/core/Link';
7
7
import List from '@material-ui/core/List' ;
8
8
import ListItem from '@material-ui/core/ListItem' ;
9
9
import ListItemText from '@material-ui/core/ListItemText' ;
10
- import ListSubheader from '@material-ui/core/ListSubheader' ;
11
10
import makeStyles from '@material-ui/core/styles/makeStyles' ;
12
11
import Paper from '@material-ui/core/Paper' ;
13
12
import SvgIcon from '@material-ui/core/SvgIcon' ;
@@ -22,19 +21,20 @@ import DiscordIcon from './common/discord-svg-icon';
22
21
23
22
const useRepoLinkStyles = makeStyles ( ( ) => ( {
24
23
listLink : {
25
- paddingLeft : 0 ,
26
- paddingRight : 0 ,
27
- fontWeight : 'inherit'
24
+ display : 'flex' ,
25
+ alignContent : 'center'
28
26
}
29
27
} ) ) ;
30
28
31
- const RepoLink = ( { href, label } ) => {
29
+ const RepoLink = ( { href, icon , label } ) => {
32
30
const classes = useRepoLinkStyles ( ) ;
33
31
return (
34
32
< ListItem >
35
33
< ListItemText
36
34
primary = {
37
35
< Link href = { href } target = "_blank" rel = "noopener noreferrer" className = { classes . listLink } color = "inherit" >
36
+ < SvgIcon > { icon } </ SvgIcon >
37
+
38
38
{ label }
39
39
</ Link >
40
40
}
@@ -105,47 +105,37 @@ const Footer = ({ open }) => {
105
105
</ Grid >
106
106
< Grid xs = { 12 } md = { 8 } item >
107
107
< Paper elevation = { 0 } className = { clsx ( classes . foooterCard , classes . foooterRight ) } >
108
- < List
109
- subheader = {
110
- < ListSubheader className = { classes . listHeader } >
111
- Link to { ' ' }
112
- < SvgIcon >
113
- < GhIcon />
114
- </ SvgIcon >
115
- </ ListSubheader >
116
- }
117
- >
118
- < RepoLink href = "https://github.com/data-driven-forms/react-forms" label = "React forms" />
119
- < ListSubheader className = { classes . listHeader } >
120
- Link to { ' ' }
121
- < SvgIcon >
122
- < DiscordIcon />
123
- </ SvgIcon >
124
- </ ListSubheader >
125
- < RepoLink href = "https://discord.gg/6sBw6WM" label = "Discord server" />
126
- < ListSubheader className = { classes . listHeader } >
127
- Link to { ' ' }
128
- < SvgIcon >
129
- < TwitterIcon />
130
- </ SvgIcon >
131
- </ ListSubheader >
132
- < RepoLink href = "https://twitter.com/DataDrivenForms" label = "@DataDrivenForms" />
108
+ < List >
109
+ < RepoLink href = "https://github.com/data-driven-forms/react-forms" icon = < GhIcon /> label = "React forms" />
110
+ < RepoLink href = "https://discord.gg/6sBw6WM" icon = < DiscordIcon /> label = "Discord server" />
111
+ < RepoLink href = "https://twitter.com/DataDrivenForms" icon = < TwitterIcon /> label = "@DataDrivenForms" />
133
112
</ List >
134
- < List
135
- subheader = {
136
- < ListSubheader className = { classes . listHeader } >
137
- Links to { ' ' }
138
- < SvgIcon >
139
- < NpmSvgIcon />
140
- </ SvgIcon >
141
- </ ListSubheader >
142
- }
143
- >
144
- < RepoLink href = "https://www.npmjs.com/package/@data-driven-forms/react-form-renderer" label = "React form renderer" />
145
- < RepoLink href = "https://www.npmjs.com/package/@data-driven-forms/pf4-component-mapper" label = "PF4 component mapper" />
146
- < RepoLink href = "https://www.npmjs.com/package/@data-driven-forms/pf3-component-mapper" label = "PF3 component mapper" />
147
- < RepoLink href = "https://www.npmjs.com/package/@data-driven-forms/mui-component-mapper" label = "MUI component mapper" />
148
- < RepoLink href = "https://www.npmjs.com/package/@data-driven-forms/blueprint-component-mapper" label = "Blueprint component mapper" />
113
+ < List >
114
+ < RepoLink
115
+ href = "https://www.npmjs.com/package/@data-driven-forms/react-form-renderer"
116
+ icon = < NpmSvgIcon />
117
+ label = "React form renderer"
118
+ />
119
+ < RepoLink
120
+ href = "https://www.npmjs.com/package/@data-driven-forms/pf4-component-mapper"
121
+ icon = < NpmSvgIcon />
122
+ label = "PF4 component mapper"
123
+ />
124
+ < RepoLink
125
+ href = "https://www.npmjs.com/package/@data-driven-forms/pf3-component-mapper"
126
+ icon = < NpmSvgIcon />
127
+ label = "PF3 component mapper"
128
+ />
129
+ < RepoLink
130
+ href = "https://www.npmjs.com/package/@data-driven-forms/mui-component-mapper"
131
+ icon = < NpmSvgIcon />
132
+ label = "MUI component mapper"
133
+ />
134
+ < RepoLink
135
+ href = "https://www.npmjs.com/package/@data-driven-forms/blueprint-component-mapper"
136
+ icon = < NpmSvgIcon />
137
+ label = "Blueprint component mapper"
138
+ />
149
139
</ List >
150
140
</ Paper >
151
141
</ Grid >
0 commit comments