Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

[Front] SpinBorderCheck #105

Merged
merged 1 commit into from
Feb 7, 2024
Merged

[Front] SpinBorderCheck #105

merged 1 commit into from
Feb 7, 2024

Commits on Feb 7, 2024

  1. 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.
    Aloento committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    013555f View commit details
    Browse the repository at this point in the history