diff --git a/src/common/components/discussion/index.tsx b/src/common/components/discussion/index.tsx index 13710000955..55607e85a22 100644 --- a/src/common/components/discussion/index.tsx +++ b/src/common/components/discussion/index.tsx @@ -344,7 +344,7 @@ export const Item = (props: ItemProps) => { entry, onSuccess: deleted, children: ( - + {deleteForeverSvg} {_t("g.delete")} ) diff --git a/src/common/components/entry-read-time/index.tsx b/src/common/components/entry-read-time/index.tsx index 86751a6267b..10ce5f5ddb4 100644 --- a/src/common/components/entry-read-time/index.tsx +++ b/src/common/components/entry-read-time/index.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useState } from "react"; import { Link } from "react-router-dom"; -import Tooltip from "../tooltip"; +import { StyledTooltip } from "../tooltip"; import { _t } from "../../i18n"; import { informationVariantSvg } from "../../img/svg"; import UserAvatar from "../user-avatar"; @@ -51,7 +51,7 @@ export const ReadTime = (props: any) => { return toolTip ? (
- { {informationVariantSvg} - +
) : ( <> @@ -82,13 +82,13 @@ export const ReadTime = (props: any) => { {topCurator && (
{_t("entry.post-top-curator")} - +
-
+
)} diff --git a/src/common/components/rc-delegations-list/index.tsx b/src/common/components/rc-delegations-list/index.tsx index c1924448e26..ef764238876 100644 --- a/src/common/components/rc-delegations-list/index.tsx +++ b/src/common/components/rc-delegations-list/index.tsx @@ -90,7 +90,7 @@ export const RcDelegationsList = (props: any) => { {listMode === "out" && ( <> {outGoingList.length > 0 ? ( - + {outGoingList ?.slice(0, loadList) .filter( diff --git a/src/common/components/tooltip/index.tsx b/src/common/components/tooltip/index.tsx index b2f6727c677..f4be9d807b4 100644 --- a/src/common/components/tooltip/index.tsx +++ b/src/common/components/tooltip/index.tsx @@ -1,6 +1,7 @@ import React, { ReactNode, useState } from "react"; import { createPortal } from "react-dom"; import { usePopper } from "react-popper"; +import { useMountedState } from "react-use"; interface Props { content: string | JSX.Element; @@ -22,9 +23,11 @@ export function StyledTooltip({ children, content }: StyledProps) { const [popperElement, setPopperElement] = useState(); const [show, setShow] = useState(false); + const isMounted = useMountedState(); + const popper = usePopper(ref, popperElement); - return ( + return isMounted() ? (
+ ) : ( + <> ); } diff --git a/src/common/features/ui/list/index.tsx b/src/common/features/ui/list/index.tsx index 8aa1cee148c..4899f1ee52d 100644 --- a/src/common/features/ui/list/index.tsx +++ b/src/common/features/ui/list/index.tsx @@ -6,6 +6,7 @@ interface Props { defer?: boolean; inline?: boolean; grid?: boolean; + scrollable?: boolean; } export function List(props: HTMLProps & Props) { @@ -15,12 +16,13 @@ export function List(props: HTMLProps & Props) {