Skip to content

Commit

Permalink
Merge pull request #1026 from the-hideout/more-historical-prices
Browse files Browse the repository at this point in the history
Allow display of 30 days of historical prices per item
  • Loading branch information
Razzmatazzz authored Dec 19, 2024
2 parents 8562b65 + 5f94faa commit 650cec7
Show file tree
Hide file tree
Showing 22 changed files with 177 additions and 198 deletions.
135 changes: 25 additions & 110 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@mui/material": "^6.0.2",
"@mui/x-tree-view": "^7.23.0",
"@reduxjs/toolkit": "^2.5.0",
"@tanstack/react-query": "^5.62.7",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@tippyjs/react": "^4.2.6",
Expand Down Expand Up @@ -65,7 +66,6 @@
"react-i18next": "^15.1.4",
"react-intersection-observer": "^9.13.1",
"react-loader-spinner": "^6.1.6",
"react-query": "^3.39.3",
"react-redux": "^9.2.0",
"react-router-dom": "^6.28.0",
"react-router-hash-link": "^2.4.3",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/App.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { renderWithProviders } from '../test-utils';
import App from '../App';
import { QueryClient, QueryClientProvider } from 'react-query';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';

import { useInView } from 'react-intersection-observer';
jest.mock('react-intersection-observer');
Expand Down
4 changes: 2 additions & 2 deletions src/components/api-metrics-graph/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useQuery } from 'react-query';
import { useQuery } from '@tanstack/react-query';
import {
VictoryChart,
VictoryLine,
Expand All @@ -18,7 +18,7 @@ const fetchApiData = async () => {

function ApiMetricsGraph({ graph }) {
const { t } = useTranslation();
const { status, data } = useQuery(`api-metrics`, fetchApiData, { refetchOnMount: false, refetchOnWindowFocus: false });
const { status, data } = useQuery({queryKey: `api-metrics`, queryFn: fetchApiData, refetchOnMount: false, refetchOnWindowFocus: false });

let height = VictoryTheme.material.height;

Expand Down
2 changes: 1 addition & 1 deletion src/components/menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const Menu = () => {
<li className="submenu-wrapper submenu-items overflow-member" key="menu-items" data-targetid="items">
<Link to="/items/">{t('Items')}</Link>
<ul className="overflow-hidden">
{categoryPages.sort((a, b) => t(a.displayText).localeCompare(t(b.displayText))).map((categoryPage) => (
{categoryPages.map((categoryPage) => (
<MenuItem
displayText={t(categoryPage.displayText)}
key={categoryPage.key}
Expand Down
Loading

0 comments on commit 650cec7

Please sign in to comment.