This repository has been archived by the owner on Mar 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The most significant changes in the code involve the parsing of the v…
…alue `val` from the `SpinButton` component and the conditions for returning early from functions. These changes were made in several files and functions, including `Columns.tsx`, `useLimit.ts`, `index.tsx`, `Detail.tsx`, `New.tsx`, and `Quantity.tsx`. Additionally, the `useLimit` function now returns an additional value, `count`, which is used in the `ProductQuantity` function. Here are the changes in detail: 1. In `Columns.tsx`, the parsing of `val` from the `SpinButton` component was updated. The early return condition in the `onChange` function was also updated to account for a disabled state and the current quantity of the item. 2. The `useLimit` function in `useLimit.ts` was updated to return an additional value, `count`. The early return conditions were updated to include this new value. 3. In `index.tsx`, the `AdminOrder` function was updated to change the condition for running a function based on the parsed value from a component. 4. The `lodash-es` import was removed from `Detail.tsx` and `New.tsx` as it was no longer needed. 5. The `AdminProductComboDetail` and `AdminProductNewCombo` functions in `Detail.tsx` and `New.tsx` respectively were updated to change the parsing of `val` from the `SpinButton` component and the condition for setting the stock state. 6. The `ProductQuantity` function in `Quantity.tsx` was updated to use the new `count` value returned from the `useLimit` function and to change the parsing of `val` from the `SpinButton` component. The early return condition in the `onChange` function was also updated to account for this new value.
- Loading branch information
Showing
6 changed files
with
28 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters