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

refactor(ui): use import type syntax where possible #12514

Merged
merged 1 commit into from
Feb 3, 2024
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
4 changes: 2 additions & 2 deletions ui/src/app/shared/components/suspense-monaco-editor.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import {MonacoEditorProps} from 'react-monaco-editor';
import MonacoEditor from 'react-monaco-editor';
import type {MonacoEditorProps} from 'react-monaco-editor';
import type MonacoEditor from 'react-monaco-editor';

import {Loading} from './loading';

Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/shared/workflow-operations-map.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {NodePhase, Workflow} from '../../models';
import type {NodePhase, Workflow} from '../../models';
import {services} from './services';
import {WorkflowDeleteResponse} from './services/responses';
import {Utils} from './utils';
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/widgets/workflow-status-badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import {useEffect, useState} from 'react';
import {RouteComponentProps} from 'react-router';

import {NodePhase} from '../../models';
import type {NodePhase} from '../../models';
import {uiUrl} from '../shared/base';
import {historyUrl} from '../shared/history';
import {RetryWatch} from '../shared/retry-watch';
Expand Down
4 changes: 2 additions & 2 deletions ui/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export * from './workflow-templates';
export * from './cron-workflows';
export * from './cluster-workflow-templates';
export * from './submit-opts';
export {EventSource} from './event-source';
export {Sensor, SensorList} from './sensor';
export type {EventSource} from './event-source';
export type {Sensor, SensorList} from './sensor';
export {models as kubernetes} from 'argo-ui';