Skip to content

Commit

Permalink
fix: rejig remote data
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Oct 21, 2024
1 parent af7c48a commit 972179a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/component/personalDashboard/RemoteData.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import type { IPersonalDashboardProjectDetailsOutput } from 'hooks/api/getters/usePersonalDashboard/usePersonalDashboardProjectDetails';
import type { PersonalDashboardProjectDetailsSchema } from 'openapi';

type RemoteData<T> = { refetch: () => void } & (
export type RemoteData<T> =
| { state: 'error'; error: Error }
| { state: 'loading' }
| { state: 'success'; data: T }
);
| { state: 'success'; data: T };

export const fromPersonalDashboardProjectDetailsOutput = ({
personalDashboardProjectDetails,
Expand Down

0 comments on commit 972179a

Please sign in to comment.