From 2e615cdd35e21f7f509c11390561a58b52185a0c Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Thu, 15 Dec 2022 10:49:16 +0100 Subject: [PATCH] refresh change request, add conflict margin, set time ago (#2700) --- .../ChangeRequest/Changes/FeatureToggleChanges.tsx | 3 ++- .../ChangeRequestHeader/ChangeRequestHeader.tsx | 6 +++++- .../hooks/api/getters/useChangeRequest/useChangeRequest.ts | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/component/changeRequest/ChangeRequest/Changes/FeatureToggleChanges.tsx b/frontend/src/component/changeRequest/ChangeRequest/Changes/FeatureToggleChanges.tsx index 875cf06b62..acb3df1173 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/Changes/FeatureToggleChanges.tsx +++ b/frontend/src/component/changeRequest/ChangeRequest/Changes/FeatureToggleChanges.tsx @@ -46,7 +46,8 @@ export const FeatureToggleChanges: FC = ({ = ({ - Created {' '} + Created{' '} + {' '} by { const { data, error, mutate } = useSWR( formatApiPath(`api/admin/projects/${projectId}/change-requests/${id}`), - fetcher + fetcher, + { refreshInterval: 15000 } ); return {