chore: introduce @automatisch/types

This commit is contained in:
Ali BARIN
2022-03-01 22:56:19 +01:00
committed by Ömer Faruk Aydın
parent bbb6f0b0ff
commit 3391578655
54 changed files with 377 additions and 297 deletions

View File

@@ -2,15 +2,15 @@ import { useQuery } from '@apollo/client';
import { GET_FLOWS } from 'graphql/queries/get-flows';
import AppFlowRow from 'components/AppFlowRow';
import type { Flow } from 'types/flow';
import type { IFlow } from '@automatisch/types';
export default function AppFlows(): React.ReactElement {
const { data } = useQuery(GET_FLOWS);
const appFlows: Flow[] = data?.getFlows || [];
const appFlows: IFlow[] = data?.getFlows || [];
return (
<>
{appFlows.map((appFlow: Flow) => (
{appFlows.map((appFlow: IFlow) => (
<AppFlowRow key={appFlow.id} flow={appFlow} />
))}
</>