Skip to content

Commit

Permalink
[frontend] Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliano Costa committed Aug 17, 2023
1 parent 7d57217 commit a9eddaa
Show file tree
Hide file tree
Showing 17 changed files with 7,690 additions and 10,059 deletions.
2 changes: 1 addition & 1 deletion src/frontend/components/CartIcon/CartIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const CartIcon = () => {
return (
<>
<S.CartIcon data-cy={CypressFields.CartIcon} onClick={() => setIsOpen(true)}>
<S.Icon src="/icons/Hipster_CartIcon.svg" alt="Cart icon" title="Cart" />
<S.Icon src="/icons/CartIcon.svg" alt="Cart icon" title="Cart" />
{!!items.length && <S.ItemsCount data-cy={CypressFields.CartItemCount}>{items.length}</S.ItemsCount>}
</S.CartIcon>
<CartDropdown productList={items} isOpen={isOpen} onClose={() => setIsOpen(false)} />
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/components/CartItems/CartItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

import { useMemo } from 'react';
import { useQuery } from 'react-query';
import { useQuery } from '@tanstack/react-query';
import ApiGateway from '../../gateways/Api.gateway';
import { Address, Money } from '../../protos/demo';
import { useCurrency } from '../../providers/Currency.provider';
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/components/CheckoutForm/CheckoutForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const CheckoutForm = ({ onSubmit }: IProps) => {

return (
<S.CheckoutForm
onSubmit={event => {
onSubmit={(event: { preventDefault: () => void; }) => {
event.preventDefault();
onSubmit({
email,
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/components/CheckoutItem/CheckoutItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const CheckoutItem = ({
)}
</S.ShippingData>
<S.Status>
<Image src="/icons/Check.svg" alt="check" height="14px" width="16px" /> <span>Done</span>
<Image src="/icons/Check.svg" alt="check" height="14" width="16" /> <span>Done</span>
</S.Status>
</S.CheckoutItem>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const CurrencySwitcher = () => {
<S.SelectedConcurrency>{currencySymbol}</S.SelectedConcurrency>
<S.Select
name="currency_code"
onChange={event => setSelectedCurrency(event.target.value)}
onChange={(event: { target: { value: string; }; }) => setSelectedCurrency(event.target.value)}
value={selectedCurrency}
data-cy={CypressFields.CurrencySwitcher}
>
Expand Down
Loading

0 comments on commit a9eddaa

Please sign in to comment.