chore: introduce @automatisch/types
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
bbb6f0b0ff
commit
3391578655
@@ -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} />
|
||||
))}
|
||||
</>
|
||||
|
Reference in New Issue
Block a user