diff --git a/src/views/apps/account/AccountFormDrawer.tsx b/src/views/apps/account/AccountFormDrawer.tsx index 2fb9a5a..d4a9ec2 100644 --- a/src/views/apps/account/AccountFormDrawer.tsx +++ b/src/views/apps/account/AccountFormDrawer.tsx @@ -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 {