refactor: tippy default props
This commit is contained in:
@@ -124,8 +124,6 @@ export default function ChannelChat({ cid = "", dropFiles = [] }) {
|
||||
onHide={() => {
|
||||
setToolVisible("");
|
||||
}}
|
||||
delay={[0, 0]}
|
||||
duration={0}
|
||||
placement="left-start"
|
||||
popperOptions={{ strategy: "fixed" }}
|
||||
offset={[0, 80]}
|
||||
@@ -155,8 +153,6 @@ export default function ChannelChat({ cid = "", dropFiles = [] }) {
|
||||
onHide={() => {
|
||||
setToolVisible("");
|
||||
}}
|
||||
delay={[0, 0]}
|
||||
duration={0}
|
||||
placement="left-start"
|
||||
popperOptions={{ strategy: "fixed" }}
|
||||
offset={[0, 180]}
|
||||
|
||||
@@ -60,14 +60,6 @@ export default function DMChat({ uid = "", dropFiles = [] }) {
|
||||
</li> */}
|
||||
<Tooltip tip="Favorite" placement="left">
|
||||
<Tippy
|
||||
// onShow={() => {
|
||||
// setToolVisible('favorite');
|
||||
// }}
|
||||
// onHide={() => {
|
||||
// setToolVisible('');
|
||||
// }}
|
||||
delay={[0, 0]}
|
||||
duration={0}
|
||||
placement="left-start"
|
||||
popperOptions={{ strategy: "fixed" }}
|
||||
offset={[0, 180]}
|
||||
|
||||
@@ -34,7 +34,6 @@ const NavItem = ({ uid, mid, unreads, setFiles }) => {
|
||||
const navigate = useNavigate();
|
||||
const {
|
||||
visible: contextMenuVisible,
|
||||
offset,
|
||||
handleContextMenuEvent,
|
||||
hideContextMenu,
|
||||
} = useContextMenu();
|
||||
@@ -87,8 +86,8 @@ const NavItem = ({ uid, mid, unreads, setFiles }) => {
|
||||
interactive
|
||||
popperOptions={{ strategy: "fixed" }}
|
||||
placement="right-start"
|
||||
offset={[offset.y, offset.x]}
|
||||
visible={contextMenuVisible}
|
||||
followCursor={"initial"}
|
||||
onClickOutside={hideContextMenu}
|
||||
key={uid}
|
||||
content={
|
||||
|
||||
Reference in New Issue
Block a user