mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fixed header
This commit is contained in:
parent
ba614a115d
commit
87d59b4905
3 changed files with 6 additions and 9 deletions
|
@ -21,9 +21,8 @@ const mapDispatchToProps = {
|
|||
type IProps = ReturnType<typeof mapStateToProps> & typeof mapDispatchToProps & {};
|
||||
|
||||
const HeaderUnconnected: FC<IProps> = ({ username, is_user, showDialog }) => {
|
||||
const onLogin = useCallback(() => {
|
||||
showDialog(DIALOGS.LOGIN);
|
||||
}, [showDialog]);
|
||||
const onLogin = useCallback(() => showDialog(DIALOGS.LOGIN), [showDialog]);
|
||||
const onOpenEditor = useCallback(() => showDialog(DIALOGS.EDITOR), [showDialog]);
|
||||
|
||||
return (
|
||||
<div className="default_container head_container">
|
||||
|
@ -35,8 +34,7 @@ const HeaderUnconnected: FC<IProps> = ({ username, is_user, showDialog }) => {
|
|||
<div className={style.plugs}>
|
||||
<Link to="/">flow</Link>
|
||||
<Link to="/examples/image">image</Link>
|
||||
<Link to="/examples/edit">editor</Link>
|
||||
<Link to="/examples/horizontal">horizontal</Link>
|
||||
<div onClick={onOpenEditor}>editor</div>
|
||||
</div>
|
||||
|
||||
<Filler />
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
font: $font_16_medium;
|
||||
text-transform: uppercase;
|
||||
|
||||
> a {
|
||||
> a,
|
||||
> div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
|
|
|
@ -47,11 +47,9 @@ const LoginDialogUnconnected: FC<IProps> = ({
|
|||
|
||||
useCloseOnEscape(onRequestClose);
|
||||
|
||||
console.log({ error });
|
||||
|
||||
return (
|
||||
<form onSubmit={onSubmit}>
|
||||
<ScrollDialog buttons={buttons} width={260} error={error}>
|
||||
<ScrollDialog buttons={buttons} width={260} error={error} onClose={onRequestClose}>
|
||||
<Padder>
|
||||
<div className={styles.wrap}>
|
||||
<Group>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue