From 1789b8ddeb996a35bef7d8884116f78812de9ef6 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Wed, 24 Apr 2024 16:27:01 +0530 Subject: [PATCH] fix: observer added to empty state component (#4274) --- web/components/empty-state/empty-state.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/components/empty-state/empty-state.tsx b/web/components/empty-state/empty-state.tsx index 790bd5aec..e518b3487 100644 --- a/web/components/empty-state/empty-state.tsx +++ b/web/components/empty-state/empty-state.tsx @@ -1,4 +1,5 @@ import React from "react"; +import { observer } from "mobx-react"; import Image from "next/image"; import Link from "next/link"; @@ -23,7 +24,7 @@ export type EmptyStateProps = { secondaryButtonOnClick?: () => void; }; -export const EmptyState: React.FC = (props) => { +export const EmptyState: React.FC = observer((props) => { const { type, size = "lg", @@ -173,4 +174,4 @@ export const EmptyState: React.FC = (props) => { )} ); -}; +});