Skip to content

Commit

Permalink
refactor(hycu): move type in types to be compliance with other uapp
Browse files Browse the repository at this point in the history
ref: #NTNX-1

Signed-off-by: Thibault Barske <[email protected]>
  • Loading branch information
tibs245 committed Oct 22, 2024
1 parent c274db3 commit 9ecbe7e
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/manager/apps/hycu/src/data/api/hycu.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AxiosResponse } from 'axios';
import { fetchIcebergV6, apiClient } from '@ovh-ux/manager-core-api';
import { IHycuDetails } from '@/type/hycu.details.interface';
import { IHycuDetails } from '@/types/hycu.details.interface';

export type GetlicenseHycuListParams = {
/** Filter resources on IAM tags */
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/apps/hycu/src/hooks/api/license.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AxiosResponse } from 'axios';
import { DefinedInitialDataOptions, useQuery } from '@tanstack/react-query';
import { getlicenseHycuService } from '@/data/api/hycu';
import { IHycuDetails } from '@/type/hycu.details.interface';
import { IHycuDetails } from '@/types/hycu.details.interface';

export const useDetailsLicenseHYCU = (
serviceName: string,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IHycuDetails, LicenseStatus } from '@/type/hycu.details.interface';
import { IHycuDetails, LicenseStatus } from '@/types/hycu.details.interface';

export const licensesHycu: IHycuDetails[] = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LicenseStatus } from '@/type/hycu.details.interface';
import { LicenseStatus } from '@/types/hycu.details.interface';
import { Handler } from '../../../../../../../playwright-helpers';
import { licensesHycu } from './licenseHycu.data';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LicenseStatus } from '@/type/hycu.details.interface';
import { LicenseStatus } from '@/types/hycu.details.interface';
import { Handler } from '../../../../../../../playwright-helpers';
import { licensesHycuService } from './serviceLicenseHycu.data';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { screen, waitFor } from '@testing-library/react';
import { renderTestApp } from '@/utils/tests/renderTestApp';
import '@testing-library/jest-dom';
import { labels } from '@/utils/tests/init.i18n';
import { LicenseStatus } from '@/type/hycu.details.interface';
import { LicenseStatus } from '@/types/hycu.details.interface';

describe('License Hycu general informations tile for dashboard test suite', () => {
it('should show informations of services', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import React from 'react';
import { useTranslation } from 'react-i18next';
import { getStatusColor } from '@/utils/statusColor';
import { useDetailsLicenseHYCU } from '@/hooks/api/license';
import { LicenseStatus } from '@/type/hycu.details.interface';
import { LicenseStatus } from '@/types/hycu.details.interface';

const DownloadHycuLicense = ({ serviceName }: { serviceName: string }) => {
const { t } = useTranslation('hycu/dashboard');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import '@testing-library/jest-dom';
import { screen, waitFor } from '@testing-library/react';
import { renderTestApp } from '@/utils/tests/renderTestApp';
import { labels } from '@/utils/tests/init.i18n';
import { LicenseStatus } from '@/type/hycu.details.interface';
import { LicenseStatus } from '@/types/hycu.details.interface';

describe('License Hycu shortcuts tile for dashboard test suite', () => {
it('should show links of service to activate', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next';
import { ODS_ICON_NAME } from '@ovhcloud/ods-components';
import { ODS_THEME_COLOR_INTENT } from '@ovhcloud/ods-common-theming';
import { useDetailsLicenseHYCU } from '@/hooks/api/license';
import { LicenseStatus } from '@/type/hycu.details.interface';
import { LicenseStatus } from '@/types/hycu.details.interface';

const ShortcutsItem = ({
children,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
useFormattedDate,
} from '@ovh-ux/manager-react-components/src/hooks/date/useFormattedDate';
import HYCU_CONFIG from '@/hycu.config';
import { IHycuDetails } from '@/type/hycu.details.interface';
import { IHycuDetails } from '@/types/hycu.details.interface';

import { urls, subRoutes } from '@/routes/routes.constant';
import HycuActionMenu from './menu/HycuActionMenu.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ODS_THEME_COLOR_INTENT } from '@ovhcloud/ods-common-theming';
import React from 'react';
import { ODS_ICON_NAME } from '@ovhcloud/ods-components';
import { useTranslation } from 'react-i18next';
import { IHycuDetails } from '@/type/hycu.details.interface';
import { IHycuDetails } from '@/types/hycu.details.interface';

const HycuActionMenu = ({
serviceName: _serviceName,
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/apps/hycu/src/utils/statusColor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ODS_THEME_COLOR_INTENT } from '@ovhcloud/ods-common-theming';
import { LicenseStatus } from '@/type/hycu.details.interface';
import { LicenseStatus } from '@/types/hycu.details.interface';

/* v8 ignore start */
export const getStatusColor = (
Expand Down

0 comments on commit 9ecbe7e

Please sign in to comment.