feat: tweak add new app connection dialog

This commit is contained in:
Ali BARIN
2021-12-16 23:27:09 +01:00
parent 3e8bae2ec3
commit 81c18ee37c
6 changed files with 22 additions and 9 deletions

View File

@@ -45,7 +45,6 @@ export default function AddNewAppConnection(props: AddNewAppConnectionProps){
<FormControl
variant="outlined"
fullWidth
sx={{ mt: 2 }}
size={matchSmallScreens ? 'small' : 'medium'}
>
<InputLabel
@@ -72,10 +71,11 @@ export default function AddNewAppConnection(props: AddNewAppConnectionProps){
{data?.getApps?.map((app: App) => (
<ListItem disablePadding key={app.name}>
<ListItemButton component={Link} to={URLS.APP_ADD_CONNECTION(app.name.toLowerCase())}>
<ListItemIcon>
<AppIcon color={app.primaryColor} url={app.iconUrl} name={app.name} />
<ListItemIcon sx={{ minWidth: 74 }}>
<AppIcon color="transparent" url={app.iconUrl} name={app.name} />
</ListItemIcon>
<ListItemText primary={app.name} />
<ListItemText primary={app.name} primaryTypographyProps={{ sx: { color: (theme) => theme.palette.text.primary } }} />
</ListItemButton>
</ListItem>
))}