Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[frontend] Update dependencies #1054

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading