X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/25216cc7acedc987c26a159f0b640210c0ef101e..b5b75b89e923864389f814af97974a55b69a343f:/src/components/refresh-button/refresh-button.tsx diff --git a/src/components/refresh-button/refresh-button.tsx b/src/components/refresh-button/refresh-button.tsx index b62add72..e2fe5484 100644 --- a/src/components/refresh-button/refresh-button.tsx +++ b/src/components/refresh-button/refresh-button.tsx @@ -3,8 +3,8 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from 'react'; -import * as classNames from 'classnames'; +import React from 'react'; +import classNames from 'classnames'; import { withRouter, RouteComponentProps } from 'react-router'; import { StyleRulesCallback, Button, WithStyles, withStyles } from "@material-ui/core"; import { ReRunProcessIcon } from 'components/icon/icon'; @@ -22,13 +22,25 @@ const styles: StyleRulesCallback = theme => ({ }, }); -export const RefreshButton = ({ history, classes }: RouteComponentProps & WithStyles) => +interface RefreshButtonProps { + onClick?: () => void; +} + +export const LAST_REFRESH_TIMESTAMP = 'lastRefreshTimestamp'; + +export const RefreshButton = ({ history, classes, onClick }: RouteComponentProps & WithStyles & RefreshButtonProps) =>