diff --git a/packages/types/index.d.ts b/packages/types/index.d.ts index b4f39bd7..a2a067a4 100644 --- a/packages/types/index.d.ts +++ b/packages/types/index.d.ts @@ -14,6 +14,7 @@ export interface IConnection { userId: string; verified: boolean; count: number; + flowCount: number; createdAt: string; } diff --git a/packages/web/src/components/AppConnectionRow/index.tsx b/packages/web/src/components/AppConnectionRow/index.tsx index d7d8d08c..b85a2328 100644 --- a/packages/web/src/components/AppConnectionRow/index.tsx +++ b/packages/web/src/components/AppConnectionRow/index.tsx @@ -42,7 +42,7 @@ function AppConnectionRow(props: AppConnectionRowProps): React.ReactElement { const [deleteConnection] = useMutation(DELETE_CONNECTION); const formatMessage = useFormatMessage(); - const { id, key, formattedData, verified, createdAt } = props.connection; + const { id, key, formattedData, verified, createdAt, flowCount } = props.connection; const contextButtonRef = React.useRef(null); const [anchorEl, setAnchorEl] = React.useState(null); @@ -121,7 +121,7 @@ function AppConnectionRow(props: AppConnectionRowProps): React.ReactElement { - {formatMessage('connection.flowCount', { count: countTranslation(0) })} + {formatMessage('connection.flowCount', { count: countTranslation(flowCount) })} diff --git a/packages/web/src/graphql/queries/get-app-connections.ts b/packages/web/src/graphql/queries/get-app-connections.ts index e8a972fe..1151d3a6 100644 --- a/packages/web/src/graphql/queries/get-app-connections.ts +++ b/packages/web/src/graphql/queries/get-app-connections.ts @@ -8,6 +8,7 @@ export const GET_APP_CONNECTIONS = gql` id key verified + flowCount formattedData { screenName }