mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 19:46:40 +07:00
typed some components
This commit is contained in:
parent
a3f7fd9b46
commit
a5126aff4a
7 changed files with 23 additions and 31 deletions
19
src/components/user/GuestButton.tsx
Normal file
19
src/components/user/GuestButton.tsx
Normal file
|
@ -0,0 +1,19 @@
|
|||
// @flow
|
||||
import * as React from 'react';
|
||||
import { Icon } from '$components/panels/Icon';
|
||||
|
||||
type Props = {
|
||||
onClick: () => void,
|
||||
}
|
||||
|
||||
export const GuestButton = ({ onClick }: Props) => (
|
||||
<div className="control-bar user-bar control-bar-padded">
|
||||
<button
|
||||
className="user-bar-guest"
|
||||
onClick={onClick}
|
||||
>
|
||||
<Icon icon="icon-reg-1" />
|
||||
<span className="desktop-only">ВОЙТИ</span>
|
||||
</button>
|
||||
</div>
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue