2 // Copyright (C) The Arvados Authors. All rights reserved.
4 // SPDX-License-Identifier: AGPL-3.0
6 import * as React from 'react';
7 import * as classNames from 'classnames';
8 import { withRouter, RouteComponentProps } from 'react-router';
9 import { StyleRulesCallback, Button, WithStyles, withStyles } from "@material-ui/core";
10 import { ReRunProcessIcon } from '~/components/icon/icon';
12 type CssRules = 'button' | 'buttonRight';
14 const styles: StyleRulesCallback<CssRules> = theme => ({
17 padding: '2px 10px 2px 5px',
25 export const RefreshButton = ({ history, classes }: RouteComponentProps & WithStyles<CssRules>) =>
31 history.replace(window.location.pathname);
33 className={classNames(classes.buttonRight, classes.button)}>
38 export default withStyles(styles)(withRouter(RefreshButton));