mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 06:45:46 +00:00
refactor(FE): Refactor code formatting for consistency and readability
This commit is contained in:
@@ -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)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user