Skip to content

Commit

Permalink
[frontend] Update dependencies (#1054)
Browse files Browse the repository at this point in the history
* [frontend] Update dependencies

* changelog

---------

Co-authored-by: Carter Socha <[email protected]>
  • Loading branch information
julianocosta89 and cartersocha authored Aug 23, 2023
1 parent de55456 commit 0a40e65
Show file tree
Hide file tree
Showing 18 changed files with 7,694 additions and 10,061 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ release.
* [FraudDetectionService] Updated Kotlin version and OTel dependencies
([#987](https://github.com/open-telemetry/opentelemetry-demo/pull/987))
* [quoteservice] update php dependencies
([#994](https://github.com/open-telemetry/opentelemetry-demo/issues/994))
([#1009](https://github.com/open-telemetry/opentelemetry-demo/pull/1009))
* [tests] Update trace-based tests run script
([#1018](https://github.com/open-telemetry/opentelemetry-demo/pull/1018))
* [PaymentService] Update node to LTS version and bump deps
([#1029](https://github.com/open-telemetry/opentelemetry-demo/issues/1029))
([#1029](https://github.com/open-telemetry/opentelemetry-demo/pull/1029))
* [frontend] Update dependencies
([#1054](https://github.com/open-telemetry/opentelemetry-demo/pull/1054))

## 1.4.0

Expand Down
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 0a40e65

Please sign in to comment.