Skip to content

Commit

Permalink
fix: description type
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Nov 16, 2020
1 parent ae1c3aa commit 95cf813
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/store/src/state/context/document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ export const useGetDocumentPath = (): UseGetDocumentPath => {
/**
* Returns the descript for a document page. It uses the doc.description property if available, or if there is a component assigned to the document will return the component's name.
*/
export const useDocDescription = (doc?: Document): string | undefined => {
export const useDocDescription = (
doc?: Document,
): string | JSX.Element | undefined => {
const store = useStore();
if (!doc) {
return undefined;
Expand Down
4 changes: 3 additions & 1 deletion core/store/src/state/recoil/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ export const useGetDocumentPath = (): UseGetDocumentPath => {
/**
* Returns the descript for a document page. It uses the doc.description property if available, or if there is a component assigned to the document will return the component's name.
*/
export const useDocDescription = (doc?: Document): string | undefined => {
export const useDocDescription = (
doc?: Document,
): string | JSX.Element | undefined => {
const store = useStore();
if (!doc) {
return undefined;
Expand Down

0 comments on commit 95cf813

Please sign in to comment.