Skip to content

Commit

Permalink
css tidyup
Browse files Browse the repository at this point in the history
  • Loading branch information
3ll3d00d committed May 21, 2023
1 parent 1c261fd commit 83a165a
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions ui/src/components/main/Entry.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,11 @@ import {
Radio,
RadioGroup
} from "@mui/material";
import {makeStyles} from '@mui/styles';
import Typography from "@mui/material/Typography";
import PublishIcon from "@mui/icons-material/Publish";
import React, {useEffect, useMemo, useState} from "react";
import ezbeq from "../../services/ezbeq";

const useStyles = makeStyles({
root: {}
});

const formatExtraMeta = entry => {
const extras = []
if (entry.rating) {
Expand Down Expand Up @@ -120,10 +115,10 @@ const Uploader = ({
upload
}) => {
const slotControls = slots.map(s => <FormControlLabel value={s.id}
control={<Radio checked={uploadSlotId === s.id}
color={'primary'}/>}
label={s.id}
key={s.id}/>);
control={<Radio checked={uploadSlotId === s.id}
color={'primary'}/>}
label={s.id}
key={s.id}/>);
const slotGroup = slots.length > 1
?
<RadioGroup row aria-label="slot" name="slot"
Expand Down Expand Up @@ -154,7 +149,6 @@ const Uploader = ({
};

const Entry = ({selectedDeviceName, selectedEntry, useWide, setDevice, selectedSlotId, device, setError}) => {
const classes = useStyles();
const slots = useMemo(() => device && device.hasOwnProperty('slots') ? device.slots : [], [device]);
const [uploadSlotId, setUploadSlotId] = useState(null);
const [sendGain, setSendGain] = useState(false);
Expand Down Expand Up @@ -203,10 +197,10 @@ const Entry = ({selectedDeviceName, selectedEntry, useWide, setDevice, selectedS
<CardMedia
key={`img${idx}`}
component="img"
className={classes.media}
image={i}
title={`img${idx}`}
alt={`${selectedEntry.title} - ${idx}`}/>
alt={`${selectedEntry.title} - ${idx}`}
/>
)
: null;
const content =
Expand Down Expand Up @@ -281,7 +275,7 @@ const Entry = ({selectedDeviceName, selectedEntry, useWide, setDevice, selectedS
</FormGroup>;
if (useWide) {
return (
<Card className={classes.root}>
<Card>
{content}
{uploadAction}
{links}
Expand All @@ -290,7 +284,7 @@ const Entry = ({selectedDeviceName, selectedEntry, useWide, setDevice, selectedS
);
} else {
return (
<Card className={classes.root}>
<Card>
{uploadAction}
{content}
{links}
Expand Down

0 comments on commit 83a165a

Please sign in to comment.