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();
}
+2 -1
View File
@@ -57,6 +57,7 @@ const Login = () => {
google: enableGoogleLogin,
} = loginConfig;
const googleLogin = enableGoogleLogin && clientId;
const hasSocialLogins = enableGithubLogin || googleLogin;
return (
<div className="w-full max-w-[288px] flex flex-col gap-2 mt-4 animate-[fadeInUp_.5s_.8s_ease-in-out_both]">
<div className="bg-white dark:bg-gray-700 border dark:border-gray-500 rounded-lg">
@@ -64,7 +65,7 @@ const Login = () => {
<Input required placeholder="Name" name='username' />
<Input required placeholder="Email" type="email" name='email' />
<StyledButton disabled={isLoading} type="submit" className={clsx("small", `bg-[${color}] text-[${fgColor}]`)}>Start Chat</StyledButton>
<Divider content='OR' />
{hasSocialLogins && <Divider content='OR' />}
{googleLogin && <GoogleLoginButton clientId={clientId} />}
{enableGithubLogin && <GithubLoginButton client_id={githubAuthConfig?.client_id} source="widget" />}
</form>