fix: resolve TS errors — readonly array type and Stack sx props

This commit is contained in:
Kirill
2026-05-24 16:36:10 +05:00
parent 649ebb0256
commit 6f29da65cc
@@ -65,7 +65,7 @@ export function AdminTestChecklistPage() {
}) })
const sections = useMemo(() => { const sections = useMemo(() => {
const map = new Map<string, typeof TEST_CHECKLIST_ITEMS>() const map = new Map<string, (typeof TEST_CHECKLIST_ITEMS)[number][]>()
for (const item of TEST_CHECKLIST_ITEMS) { for (const item of TEST_CHECKLIST_ITEMS) {
const existing = map.get(item.section) || [] const existing = map.get(item.section) || []
existing.push(item) existing.push(item)
@@ -81,7 +81,7 @@ export function AdminTestChecklistPage() {
return ( return (
<Box> <Box>
<Stack direction="row" justifyContent="space-between" alignItems="center" sx={{ mb: 3 }}> <Stack direction="row" sx={{ mb: 3, justifyContent: 'space-between', alignItems: 'center' }}>
<Box> <Box>
<Typography variant="h5" sx={{ fontWeight: 700 }}> <Typography variant="h5" sx={{ fontWeight: 700 }}>
Тест-чеклист Тест-чеклист