mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
typed some components
This commit is contained in:
parent
a3f7fd9b46
commit
a5126aff4a
7 changed files with 23 additions and 31 deletions
|
@ -1,8 +1,6 @@
|
|||
// flow
|
||||
import * as React from 'react';
|
||||
import { UserLocation } from '$components/UserLocation';
|
||||
import { DistanceBar } from '$components/panels/DistanceBar';
|
||||
import { Tooltip } from "$components/panels/Tooltip";
|
||||
|
||||
export const TopLeftPanel = () => (
|
||||
<div className="status-panel top left">
|
||||
|
|
|
@ -16,10 +16,6 @@ import { IRootState } from "$redux/user/reducer";
|
|||
import { Tooltip } from "$components/panels/Tooltip";
|
||||
|
||||
interface Props extends IRootState {
|
||||
is_empty: boolean,
|
||||
dialog: string,
|
||||
dialog_active: boolean,
|
||||
|
||||
userLogout: typeof userLogout,
|
||||
setDialog: typeof setDialog,
|
||||
setDialogActive: typeof setDialogActive,
|
||||
|
@ -109,7 +105,7 @@ export class Component extends React.PureComponent<Props, State> {
|
|||
}
|
||||
{
|
||||
(user && user.role && user.role !== 'guest' && menuOpened) &&
|
||||
<UserMenu user={user} userLogout={this.props.userLogout} openAppInfoDialog={this.openAppInfoDialog} />
|
||||
<UserMenu userLogout={this.props.userLogout} openAppInfoDialog={this.openAppInfoDialog} />
|
||||
}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue