refactor(FE): Refactor code formatting for consistency and readability

This commit is contained in:
rstubryan
2026-02-19 09:33:31 +07:00
parent d9bd73d8c1
commit 1fe722cb81
4 changed files with 6 additions and 18 deletions
@@ -22,9 +22,7 @@ interface SalesClosingTableProps {
projectFlockId: number;
}
const SalesClosingTable = ({
projectFlockId,
}: SalesClosingTableProps) => {
const SalesClosingTable = ({ projectFlockId }: SalesClosingTableProps) => {
const searchParams = useSearchParams();
const kandangId = searchParams.get('kandangId');
@@ -34,10 +32,7 @@ const SalesClosingTable = ({
: `/closing/sales/${projectFlockId}`,
() =>
kandangId
? ClosingApi.getPenjualanByKandang(
projectFlockId,
Number(kandangId)
)
? ClosingApi.getPenjualanByKandang(projectFlockId, Number(kandangId))
: ClosingApi.getPenjualan(projectFlockId)
);