chore: tweaks

This commit is contained in:
Tristan Yang
2023-02-26 21:15:32 +08:00
parent 89004c28d1
commit a32ebf852f
5 changed files with 31 additions and 30 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ const ChannelModal: FC<Props> = ({ personal = false, closeModal }) => {
<div className="w-full flex flex-col justify-start gap-2 mb-2 md:mb-8">
<span className="text-gray-400 text-sm font-normal">{t("channel_name")}</span>
<div className="relative">
<input className="text-gray-600 rounded p-2 pl-9 border border-solid border-gray-300 w-full bg-transparent" onChange={handleNameInput} value={name} placeholder="new channel" />
<input className="text-gray-600 dark:text-gray-300 rounded p-2 pl-9 border border-solid border-gray-300 w-full bg-transparent" onChange={handleNameInput} value={name} placeholder="new channel" />
<ChannelIcon personal={!is_public} className="absolute left-2 top-1/2 -translate-y-1/2" />
</div>
</div>
+2 -2
View File
@@ -38,7 +38,7 @@ const Send: FC<IProps> = ({
const [markdownEditor, setMarkdownEditor] = useState(null);
const [markdownFullscreen, setMarkdownFullscreen] = useState(false);
const dispatch = useAppDispatch();
const addLocalFileMesage = useAddLocalFileMessage({ context, to: id });
const addLocalFileMessage = useAddLocalFileMessage({ context, to: id });
// 谁发的
const {
from_uid,
@@ -111,7 +111,7 @@ const Send: FC<IProps> = ({
from_uid,
sending: true
};
addLocalFileMesage(tmpMsg);
addLocalFileMessage(tmpMsg);
});
resetStageFiles();
}