Skip to content

Commit

Permalink
chore: misc minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyagabriel committed Nov 6, 2024
1 parent 37a0515 commit a3ec897
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/components/Account/Login/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {Login} from './Login';
1 change: 1 addition & 0 deletions app/components/Account/Order/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {Order} from './Order';
1 change: 1 addition & 0 deletions app/components/Account/Orders/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {Orders} from './Orders';
1 change: 1 addition & 0 deletions app/components/Account/Register/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {Register} from './Register';
8 changes: 4 additions & 4 deletions app/components/Account/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export {Activate} from './Activate';
export {Addresses} from './Addresses';
export {Profile} from './Profile';
export {Login} from './Login/Login';
export {Order} from './Order/Order';
export {Orders} from './Orders/Orders';
export {Register} from './Register/Register';
export {Login} from './Login';
export {Order} from './Order';
export {Orders} from './Orders';
export {Register} from './Register';
export {ResetPassword} from './ResetPassword';
1 change: 1 addition & 0 deletions app/components/Cart/CartLine/useCartLinePrices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export function useCartLinePrices({line}: {line: CartLine}) {
const {currency} = useLocale();

const discountAmount = useMemo(() => {
if (!discountAllocations) return 0;
return discountAllocations.reduce((acc: number, discount) => {
if (discount?.discountedAmount?.amount) {
return acc + Number(discount.discountedAmount.amount);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const CollectionFiltersSummary = memo(
className = '',
hideClear = false,
}: {
className: string;
className?: string;
hideClear?: boolean;
}) => {
const {activeFilterValues, removeFilter, clearFilters} =
Expand Down

0 comments on commit a3ec897

Please sign in to comment.