chore: remove comments

This commit is contained in:
Tristan Yang
2022-09-02 21:28:37 +08:00
parent 0c431f325a
commit 9b52b4423f
11 changed files with 6 additions and 23 deletions
-1
View File
@@ -41,7 +41,6 @@ const NavItem: FC<IProps> = ({ uid, mid = 0, unreads, setFiles }) => {
accept: [NativeTypes.FILE],
drop({ dataTransfer }) {
if (dataTransfer.files.length) {
// console.log(files, rest);
setFiles([...dataTransfer.files]);
navigate(`/chat/dm/${uid}`);
// 重置
-1
View File
@@ -23,7 +23,6 @@ const LoadMore: FC<Props> = ({ pullUp = null }) => {
// const currEle = entry.target;
if (intersecting && pullUp) {
// load more
// console.log("inview");
pullUp();
}
});
@@ -49,7 +49,6 @@ const SessionContextMenu: FC<Props> = ({
};
const handleReadAll = () => {
// console.log("last mid", mids, lastMid);
if (mid) {
const param =
context == "user" ? { users: [{ uid: +id, mid }] } : { groups: [{ gid: +id, mid }] };
-1
View File
@@ -35,7 +35,6 @@ const Session: FC<IProps> = ({
accept: [NativeTypes.FILE],
drop({ files }) {
if (files.length) {
// console.log(files, rest);
const filesData = files.map((file) => {
const { size, type, name } = file;
const url = URL.createObjectURL(file);
-2
View File
@@ -30,7 +30,6 @@ export default function HomePage() {
} = useAppSelector((store) => {
return {
ui: store.ui,
loginUid: store.authData.user?.uid,
guest: store.authData.guest
};
@@ -87,7 +86,6 @@ export default function HomePage() {
</Tooltip>
</NavLink>
</nav>
{/* <div className="divider"></div> */}
<Menu />
</div>
)}
@@ -41,7 +41,6 @@ const ProfileBasicEditModal: FC<Props> = ({
closeModal
}) => {
const [input, setInput] = useState(value);
// const dispatch = useDispatch();
const [update, { isLoading, isSuccess }] = useUpdateInfoMutation();
const handleChange = (evt: ChangeEvent<HTMLInputElement>) => {
setInput(evt.target.value);
@@ -13,7 +13,6 @@ interface Props {
const DeleteConfirmModal: FC<Props> = ({ id, closeModal }) => {
const navigateTo = useNavigate();
// const pathMatched = useMatch(`/chat/channel/${id}`);
const [deleteChannel, { isLoading, isSuccess }] = useLazyRemoveChannelQuery();
const handleDelete = () => {
deleteChannel(id);
@@ -44,7 +43,6 @@ const DeleteConfirmModal: FC<Props> = ({ id, closeModal }) => {
</Button>
</>
}
// className="animate__animated animate__fadeInDown animate__faster"
></StyledModal>
</Modal>
);
+3 -9
View File
@@ -40,15 +40,9 @@ export default function UsersPage() {
</nav>
</div>
</div>
{user_id ? (
<div className="right">
<Profile uid={+user_id} />
</div>
) : (
<div className="right placeholder">
<BlankPlaceholder type="user" />
</div>
)}
<div className={`right ${!user_id ? "placeholder" : ""}`}>
{user_id ? <Profile uid={+user_id} /> : <BlankPlaceholder type="user" />}
</div>
</StyledWrapper>
);
}