Skip to content
Closed
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
67 changes: 35 additions & 32 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 @@ -44,7 +44,7 @@
"react-dropzone": "^14.2.3",
"react-helmet": "^6.1.0",
"react-markdown": "^10.0.0",
"react-router-dom": "^6.28.0",
"react-router": "^7.5.2",
"remark-breaks": "^4.0.0",
"remark-gfm": "^4.0.0",
"rimraf": "^6.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import type { Meta, StoryObj } from '@storybook/react';
import { MUILinkWithTracking } from '.';
import { BrowserRouter, Route, Routes } from 'react-router-dom';
import { BrowserRouter, Route, Routes } from 'react-router';

const meta = {
title: 'Other/MUILinkWithTracking',
Expand Down
6 changes: 3 additions & 3 deletions src/components/RJST/Filters/PersistentFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from '../components/Filters/SchemaSieve';
import { isJSONSchema } from '../schemaOps';
import { useAnalyticsContext } from '../../../contexts/AnalyticsContext';
import type { NavigateFunction } from 'react-router-dom';
import type { NavigateFunction } from 'react-router';

export interface ListQueryStringFilterObject {
n: string;
Expand Down Expand Up @@ -159,7 +159,7 @@ export const loadRulesFromUrl = (

// In case of invalid signatures, remove search params to avoid Errors.
if (isSignaturesInvalid) {
navigate?.({ search: '' }, { replace: true });
void navigate?.({ search: '' }, { replace: true });
}

if (signatures[0].operator === FULL_TEXT_SLUG) {
Expand Down Expand Up @@ -208,7 +208,7 @@ export const PersistentFilters = ({
strictNullHandling: true,
});

navigate?.(
void navigate?.(
{
pathname,
search: filterQuery,
Expand Down
2 changes: 1 addition & 1 deletion src/components/RJST/components/Filters/FocusSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const FocusSearch = <T extends { id: number; [key: string]: any }>({
const url = new URL(rjstContext.getBaseUrl(entity));
window.open(url.toString(), '_blank');
} catch {
navigate(rjstContext.getBaseUrl(entity));
void navigate(rjstContext.getBaseUrl(entity));
}
}
}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import type { Meta, StoryObj } from '@storybook/react';
import { RouterLinkWithTracking } from '.';
import { BrowserRouter, Route, Routes } from 'react-router-dom';
import { BrowserRouter, Route, Routes } from 'react-router';

const meta = {
title: 'Other/RouterLinkWithTracking',
Expand Down
4 changes: 2 additions & 2 deletions src/components/RouterLinkWithTracking/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Link } from 'react-router-dom';
import type { LinkProps } from 'react-router-dom';
import { Link } from 'react-router';
import type { LinkProps } from 'react-router';
import { useAnalyticsContext } from '../../contexts/AnalyticsContext';
export interface RouterLinkWithTrackingProps extends LinkProps {
eventName?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/UiSharedComponentsContextProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createContext } from 'react';
import type { TFunction } from '../hooks/useTranslations';
import type { NavigateFunction } from 'react-router-dom';
import type { NavigateFunction } from 'react-router';
export interface UiSharedComponentsContextProviderInterface {
navigate?: NavigateFunction;
t?: TFunction;
Expand Down