refactor: update UXs

This commit is contained in:
zerosoul
2022-02-17 14:26:03 +08:00
parent 732c0ea8e2
commit f14d978bcd
23 changed files with 258 additions and 73 deletions
+2 -2
View File
@@ -6,6 +6,7 @@ import Modal from "../Modal";
import ChannelIcon from "../ChannelIcon";
import Contact from "../Contact";
import StyledWrapper from "./styled";
import StyledCheckbox from "../../component/StyledCheckbox";
import useFilteredUsers from "../../hook/useFilteredUsers";
import { addChannel } from "../../../app/slices/channels";
@@ -103,10 +104,9 @@ export default function ChannelModal({ personal = false, closeModal }) {
className="user"
onClick={toggleCheckMember}
>
<input
<StyledCheckbox
readOnly
checked={checked}
type="checkbox"
name="cb"
id="cb"
/>
@@ -41,7 +41,12 @@ const StyledWrapper = styled.div`
display: flex;
align-items: center;
padding: 0 16px;
/* margin: 0 4px; */
width: -webkit-fill-available;
border-radius: 4px;
&:hover {
background: rgba(116, 127, 141, 0.1);
}
> div {
width: 100%;
}