Skip to content

Commit

Permalink
fix(pci.rancher): delete useless useref
Browse files Browse the repository at this point in the history
ref: TAPC-1615
Signed-off-by: Pierre-Philippe <[email protected]>
  • Loading branch information
Pierre-Philippe committed Oct 10, 2024
1 parent 844dba0 commit a4d8cd5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { format } from 'date-fns';
import * as dateFnsLocales from 'date-fns/locale';
import * as locales from 'date-fns/locale';
import { getDateFnsLocale } from '@ovh-ux/manager-core-utils';

import {
Expand All @@ -24,7 +24,7 @@ import {
OsdsText,
OsdsTile,
} from '@ovhcloud/ods-components/react';
import React, { useCallback, useEffect, useRef, useState } from 'react';
import React, { useCallback, useEffect, useState } from 'react';
import { useHref } from 'react-router-dom';
import { useTranslation } from 'react-i18next';

Expand Down Expand Up @@ -130,7 +130,7 @@ const RancherDetail = ({
getLatestVersionAvailable(rancher, versions) &&
isReadyStatus &&
!updateSoftwareResponseType;
const locales = useRef({ ...dateFnsLocales }).current;

const userLocale = getDateFnsLocale(i18n.language);

const displayDate = useCallback(
Expand Down

0 comments on commit a4d8cd5

Please sign in to comment.