chore: update frontend actions

This commit is contained in:
Steven
2022-09-12 11:37:33 +08:00
parent fbe09d7cd0
commit 840659e2b2
14 changed files with 173 additions and 365 deletions

View File

@ -3,7 +3,6 @@ import { useAppSelector } from "../store";
import { userService } from "../services";
import useToggle from "../hooks/useToggle";
import Icon from "./Icon";
import styles from "../less/header.module.less";
const Header: React.FC = () => {
const navigate = useNavigate();
@ -16,9 +15,9 @@ const Header: React.FC = () => {
};
return (
<div className={styles.header}>
<div className="w-full bg-amber-50">
<div className="w-full max-w-4xl mx-auto px-3 py-4 flex flex-row justify-between items-center">
<span>Corgi</span>
<span className="text-xl font-mono font-medium">Corgi</span>
<div className="relative">
<div className="flex flex-row justify-end items-center" onClick={() => toggleShowDropdown()}>
<span>{user?.name}</span>