From d8914d5a7a1e997dabdf2d28e3ca6908db1cdf6b Mon Sep 17 00:00:00 2001 From: zerosoul Date: Sun, 24 Apr 2022 12:40:37 +0800 Subject: [PATCH] chore: remove unused UIs --- src/common/component/Message/Commands.js | 14 +++++--------- src/common/component/Profile.js | 18 +++++++++--------- src/common/component/Send/Toolbar.js | 6 +++--- src/routes/chat/ChannelChat/index.js | 4 ++-- src/routes/chat/DMChat/index.js | 4 ++-- src/routes/setting/navs.js | 12 ++++++------ 6 files changed, 27 insertions(+), 31 deletions(-) diff --git a/src/common/component/Message/Commands.js b/src/common/component/Message/Commands.js index eccddd99..c7c66af0 100644 --- a/src/common/component/Message/Commands.js +++ b/src/common/component/Message/Commands.js @@ -12,7 +12,7 @@ import EmojiPicker from "./EmojiPicker"; import replyIcon from "../../../assets/icons/reply.svg?url"; import reactIcon from "../../../assets/icons/reaction.svg?url"; import editIcon from "../../../assets/icons/edit.svg?url"; -import bookmarkIcon from "../../../assets/icons/bookmark.svg?url"; +// import bookmarkIcon from "../../../assets/icons/bookmark.svg?url"; import moreIcon from "../../../assets/icons/more.svg?url"; import ForwardModal from "../ForwardModal"; const StyledCmds = styled.ul` @@ -48,11 +48,6 @@ const StyledCmds = styled.ul` top: 0; transform: translateX(-100%); } - .menu { - position: absolute; - top: 0; - right: 36px; - } `; export default function Commands({ contextId = 0, @@ -117,21 +112,22 @@ export default function Commands({ )} -
  • + {/*
  • icon bookmark -
  • + */} {/*
  • Edit Message
  • */} -
  • Pin Message
  • + {/*
  • Pin Message
  • */}
  • Forward
  • diff --git a/src/common/component/Profile.js b/src/common/component/Profile.js index 54f09289..556c5f9d 100644 --- a/src/common/component/Profile.js +++ b/src/common/component/Profile.js @@ -4,8 +4,8 @@ import { useSelector } from "react-redux"; import { NavLink } from "react-router-dom"; import { BsChatText } from "react-icons/bs"; -import { RiUserAddLine } from "react-icons/ri"; -import { IoShareOutline } from "react-icons/io5"; +// import { RiUserAddLine } from "react-icons/ri"; +// import { IoShareOutline } from "react-icons/io5"; import styled from "styled-components"; import Avatar from "../../common/component/Avatar"; @@ -80,18 +80,18 @@ export default function Profile({ uid = null, type = "embed" }) { -
  • - {/* */} + {/*
  • + - {/* */} +
  • - {/* */} + - {/* */} -
  • + + */} - {type == "embed" &&
    } + {/* {type == "embed" &&
    } */} ); } diff --git a/src/common/component/Send/Toolbar.js b/src/common/component/Send/Toolbar.js index 98576db2..53b85d4a 100644 --- a/src/common/component/Send/Toolbar.js +++ b/src/common/component/Send/Toolbar.js @@ -10,9 +10,9 @@ const Styled = styled.div` align-items: center; justify-content: flex-end; gap: 10px; - /* &.markdown { - flex-direction: column; - } */ + &.markdown .add { + display: none; + } .md { cursor: pointer; display: flex; diff --git a/src/routes/chat/ChannelChat/index.js b/src/routes/chat/ChannelChat/index.js index 63c9b283..ced58a9a 100644 --- a/src/routes/chat/ChannelChat/index.js +++ b/src/routes/chat/ChannelChat/index.js @@ -82,11 +82,11 @@ export default function ChannelChat({ cid = "", dropFiles = [] }) { aside={ <>
      -
    • + {/*
    • opt icon -
    • + */}
    • opt icon diff --git a/src/routes/chat/DMChat/index.js b/src/routes/chat/DMChat/index.js index e45f0f3d..1bfadd33 100644 --- a/src/routes/chat/DMChat/index.js +++ b/src/routes/chat/DMChat/index.js @@ -43,9 +43,9 @@ export default function DMChat({ uid = "", dropFiles = [] }) { aside={ <>
        -
      • + {/*
      • opt icon -
      • + */}
      • opt icon
      • diff --git a/src/routes/setting/navs.js b/src/routes/setting/navs.js index fa715a1c..6134b6a2 100644 --- a/src/routes/setting/navs.js +++ b/src/routes/setting/navs.js @@ -4,7 +4,7 @@ import Overview from "./Overview"; import Logins from "./config/Logins"; import ConfigFirebase from "./config/Firebase"; import ConfigSMTP from "./config/SMTP"; -import Notifications from "./Notifications"; +// import Notifications from "./Notifications"; import APIConfig from "./APIConfig"; import ManageMembers from "../../common/component/ManageMembers"; import FAQ from "../../common/component/FAQ"; @@ -24,11 +24,11 @@ const navs = [ component: , admin: true, }, - { - name: "notification", - title: "Notification", - component: , - }, + // { + // name: "notification", + // title: "Notification", + // component: , + // }, ], }, {