fixes from review

This commit is contained in:
padamsen_fisker
2024-01-31 10:46:32 -05:00
parent 0a886904d6
commit 78108e3d9c
6 changed files with 45 additions and 29 deletions

View File

@@ -48,19 +48,25 @@ exports[`SUMSList Render 1`] = `
class="MuiTableRow-root MuiTableRow-head"
>
<th
aria-sort="descending"
class="MuiTableCell-root MuiTableCell-head MuiTableCell-alignCenter"
scope="col"
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiTableSortLabel-root"
class="MuiButtonBase-root MuiTableSortLabel-root MuiTableSortLabel-active"
role="button"
tabindex="0"
>
SUMS Version
<span
class="makeStyles-hiddenSortSpan-0"
>
sorted descending
</span>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiTableSortLabel-icon MuiTableSortLabel-iconDirectionAsc"
class="MuiSvgIcon-root MuiTableSortLabel-icon MuiTableSortLabel-iconDirectionDesc"
focusable="false"
viewBox="0 0 24 24"
>
@@ -94,25 +100,19 @@ exports[`SUMSList Render 1`] = `
</span>
</th>
<th
aria-sort="descending"
class="MuiTableCell-root MuiTableCell-head MuiTableCell-alignCenter"
scope="col"
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiTableSortLabel-root MuiTableSortLabel-active"
class="MuiButtonBase-root MuiTableSortLabel-root"
role="button"
tabindex="0"
>
Created
<span
class="makeStyles-hiddenSortSpan-0"
>
sorted descending
</span>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiTableSortLabel-icon MuiTableSortLabel-iconDirectionDesc"
class="MuiSvgIcon-root MuiTableSortLabel-icon MuiTableSortLabel-iconDirectionAsc"
focusable="false"
viewBox="0 0 24 24"
>

View File

@@ -49,7 +49,7 @@ const PAGE_SIZE = "SUMS_VERSIONS_TABLE_PAGE_SIZE";
const MainForm = () => {
const classes = useStyles();
const { setMessage, setTitle, setSitePath } = useStatusContext();
const [orderBy, setOrderBy] = useState("created_at");
const [orderBy, setOrderBy] = useState("version");
const [order, setOrder] = useState("desc");
const [showDeleteModal, setShowDeleteModal] = useState(false);
const [rowToDelete, setRowToDelete] = useState({});

View File

@@ -47,7 +47,7 @@ exports[`SUMSNew Render 1`] = `
aria-invalid="false"
class="MuiInputBase-input MuiOutlinedInput-input"
id="sums_version"
maxlength="255"
maxlength="15"
name="sums_version"
required=""
type="text"
@@ -93,7 +93,7 @@ exports[`SUMSNew Render 1`] = `
aria-invalid="false"
class="MuiInputBase-input MuiOutlinedInput-input"
id="os_version"
maxlength="255"
maxlength="20"
name="os_version"
required=""
type="text"

View File

@@ -81,7 +81,7 @@ const MainForm = () => {
variant="outlined"
margin="normal"
inputProps={{
maxLength: "255",
maxLength: "15",
}}
required
fullWidth
@@ -96,7 +96,7 @@ const MainForm = () => {
variant="outlined"
margin="normal"
inputProps={{
maxLength: "255",
maxLength: "20",
}}
required
fullWidth