File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ const UnorderedList: React.FC<UnorderedListProps> = (
3434
3535 return (
3636 < ul className = { cssClassNames . join ( " " ) } id = { props . id } >
37- { props . listItems ?. map ( ( listItem , index ) => {
38- return < li key = { index } > { listItem } </ li > ;
39- } ) }
37+ { props . listItems ?. map ( ( listItem , index ) => (
38+ < li key = { index } > { listItem } </ li >
39+ ) ) }
4040 </ ul >
4141 ) ;
4242} ;
Original file line number Diff line number Diff line change @@ -66,12 +66,15 @@ const Tooltip: React.FC<TooltipProps> = (props: TooltipProps) => {
6666 return props . children ;
6767 }
6868
69+ const followCursorType =
70+ props . showOnCursor === false ? undefined : "initial" ;
71+
6972 return (
7073 < Tippy
7174 className = { classNames . join ( " " ) }
7275 content = { getContent ( ) }
7376 delay = { props . delay ?? 500 }
74- followCursor = { props . showOnCursor === false ? undefined : "initial" }
77+ followCursor = { followCursorType }
7578 hideOnClick = { false }
7679 plugins = { [ followCursor ] }
7780 visible = { props . visible } >
You can’t perform that action at this time.
0 commit comments