mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: observer added to empty state component (#4274)
This commit is contained in:
parent
b711fedb65
commit
1789b8ddeb
@ -1,4 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
import { observer } from "mobx-react";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
|
||||||
@ -23,7 +24,7 @@ export type EmptyStateProps = {
|
|||||||
secondaryButtonOnClick?: () => void;
|
secondaryButtonOnClick?: () => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const EmptyState: React.FC<EmptyStateProps> = (props) => {
|
export const EmptyState: React.FC<EmptyStateProps> = observer((props) => {
|
||||||
const {
|
const {
|
||||||
type,
|
type,
|
||||||
size = "lg",
|
size = "lg",
|
||||||
@ -173,4 +174,4 @@ export const EmptyState: React.FC<EmptyStateProps> = (props) => {
|
|||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user