Merge branch 'jszlenk/create_new_subproject' refs #21937
[arvados.git] / services / workbench2 / 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>);