Merge branch '21128-toolbar-context-menu'
[arvados-workbench2.git] / src / views-components / main-app-bar / anonymous-menu.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import React from "react";
6 import { Button } from '@material-ui/core';
7 import { DispatchProp, connect } from 'react-redux';
8 import { login } from 'store/auth/auth-action';
9
10 export const AnonymousMenu = connect()(
11     ({ dispatch }: DispatchProp<any>) =>
12         <Button
13             color="inherit"
14             onClick={() => dispatch(login("", "", "", {}))}>
15             Sign in
16         </Button>);