efril #7

Merged
aefril merged 23 commits from efril into main 2025-09-12 21:12:53 +00:00
Showing only changes of commit 5a0d96ee43 - Show all commits

View File

@ -5,7 +5,6 @@ import { useState, useEffect } from 'react'
import Button from '@mui/material/Button'
import Drawer from '@mui/material/Drawer'
import IconButton from '@mui/material/IconButton'
import MenuItem from '@mui/material/MenuItem'
import Typography from '@mui/material/Typography'
import Box from '@mui/material/Box'
@ -51,18 +50,6 @@ type FormValidateType = {
parentAccount?: string
}
// Fallback categories (used when API data is not available)
const fallbackAccountCategories = [
'Kas & Bank',
'Piutang',
'Persediaan',
'Aset Tetap',
'Hutang',
'Ekuitas',
'Pendapatan',
'Beban'
]
// Parent accounts (dummy data for dropdown)
const parentAccounts = [
{ id: 1, code: '1-10001', name: 'Kas' },
@ -103,12 +90,7 @@ const AccountFormDrawer = (props: Props) => {
code: type.code,
description: type.description
}))
: fallbackAccountCategories.map(category => ({
id: category.toLowerCase().replace(/\s+/g, '_'),
name: category,
code: category,
description: category
}))
: []
// Hooks
const {