fix: observer added to empty state component (#4274)

This commit is contained in:
Anmol Singh Bhatia 2024-04-24 16:27:01 +05:30 committed by GitHub
parent b711fedb65
commit 1789b8ddeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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<EmptyStateProps> = (props) => {
export const EmptyState: React.FC<EmptyStateProps> = observer((props) => {
const {
type,
size = "lg",
@ -173,4 +174,4 @@ export const EmptyState: React.FC<EmptyStateProps> = (props) => {
)}
</>
);
};
});