Skip to content

Commit

Permalink
move cancel button to the left side
Browse files Browse the repository at this point in the history
  • Loading branch information
AshrafMd-1 committed Nov 15, 2023
1 parent fb69380 commit 3ae62fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Components/Facility/AddInventoryForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import TextFormField from "../Form/FormFields/TextFormField";
import { InventoryItemsModel } from "./models";
import { Cancel, Submit } from "../Common/components/ButtonV2";
import useAppHistory from "../../Common/hooks/useAppHistory";

const Loading = lazy(() => import("../Common/Loading"));

const initForm = {
Expand Down Expand Up @@ -122,6 +123,7 @@ export const AddInventoryForm = (props: any) => {
setFacilityName("");
}
}

fetchFacilityName();
}, [dispatchAction, facilityId]);

Expand Down Expand Up @@ -327,7 +329,7 @@ export const AddInventoryForm = (props: any) => {
/>
</div>
</div>
<div className="mt-4 flex flex-col justify-between gap-2 md:flex-row">
<div className="mt-4 flex flex-col justify-end gap-2 md:flex-row">
<Cancel onClick={() => goBack()} />
<Submit onClick={handleSubmit} label="Add/Update Inventory" />
</div>
Expand Down

0 comments on commit 3ae62fc

Please sign in to comment.