Skip to content

Commit

Permalink
refactor(ui): use import type syntax where possible (argoproj#12514)
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Gilgur <[email protected]>
  • Loading branch information
agilgur5 authored and isubasinghe committed Feb 4, 2024
1 parent 2cf1a13 commit 65572c1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
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';

0 comments on commit 65572c1

Please sign in to comment.