Skip to content

Commit ae47e96

Browse files
414 - Adds absolute config to orchestrator-ui-components and applies absolute paths to WfoStartPage components
1 parent 6a098ce commit ae47e96

File tree

8 files changed

+20
-10
lines changed

8 files changed

+20
-10
lines changed

packages/orchestrator-ui-components/src/components/WfoAuth/WfoAuth.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React, { JSX, useContext } from 'react';
22

33
import { useSession } from 'next-auth/react';
44

5-
import { OrchestratorConfigContext } from '../../contexts';
6-
import { WfoLoading } from '../WfoLoading';
5+
import { WfoLoading } from '@/components';
6+
import { OrchestratorConfigContext } from '@/contexts';
77

88
interface AuthProps {
99
children: JSX.Element;

packages/orchestrator-ui-components/src/components/WfoStartPage/WfoListItemStartPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import moment from 'moment';
44

55
import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiTextColor } from '@elastic/eui';
66

7-
import { ProcessFromRestApi, ProductDefinition } from '../../types';
7+
import { ProcessFromRestApi, ProductDefinition } from '@/types';
88

99
interface Subscription {
1010
name: string;

packages/orchestrator-ui-components/src/components/WfoStartPage/WfoListStartPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import {
88
EuiSpacer,
99
} from '@elastic/eui';
1010

11-
import { ItemsList } from '../../types';
11+
import { ItemsList } from '@/types';
12+
1213
import { WfoListItemStartPage } from './WfoListItemStartPage';
1314

1415
interface WfoListStartPage {

packages/orchestrator-ui-components/src/components/WfoStartPage/WfoMultiListSection.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import {
66
useFavouriteSubscriptions,
77
useProcessesAttention,
88
useRecentProcesses,
9-
} from '../../hooks/DataFetchHooks';
9+
} from '@/hooks';
10+
1011
import WfoListStartPage from './WfoListStartPage';
1112

1213
export const WfoMultiListSection: FC = () => {

packages/orchestrator-ui-components/src/components/WfoStartPage/WfoNewProcessPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
EuiTextColor,
99
} from '@elastic/eui';
1010

11-
import { WfoFrequentlyUsed } from './WfoFrequentlyUsed';
11+
import { WfoFrequentlyUsed } from '@/components';
1212

1313
export const WfoNewProcessPanel: FC = () => {
1414
const [value, setValue] = useState('');

packages/orchestrator-ui-components/src/components/WfoStartPage/WfoStatCards.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
EuiText,
99
} from '@elastic/eui';
1010

11-
import { useOrchestratorTheme } from '../../hooks/useOrchestratorTheme';
12-
import { TotalStat } from '../../types';
11+
import { useOrchestratorTheme } from '@/hooks';
12+
import { TotalStat } from '@/types';
1313

1414
const totalStats: TotalStat[] = [
1515
{

packages/orchestrator-ui-components/tsconfig.build.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"extends": "@orchestrator-ui/tsconfig/base.json",
33
"compilerOptions": {
4-
"strictNullChecks": true
4+
"strictNullChecks": true,
5+
"baseUrl": ".",
6+
"paths": {
7+
"@/*": ["./src/*"]
8+
}
59
},
610
"include": ["**/*.ts", "**/*.tsx"],
711
"exclude": [

packages/orchestrator-ui-components/tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
"compilerOptions": {
44
"strictNullChecks": true,
55
"rootDir": "./src",
6-
"outDir": "./dist"
6+
"outDir": "./dist",
7+
"baseUrl": ".",
8+
"paths": {
9+
"@/*": ["./src/*"]
10+
}
711
},
812
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
913
"exclude": [

0 commit comments

Comments
 (0)