X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/38d27e9783f7f760cee84cc225e86144069848c4..b5b75b89e923864389f814af97974a55b69a343f:/src/components/refresh-button/refresh-button.tsx?ds=sidebyside diff --git a/src/components/refresh-button/refresh-button.tsx b/src/components/refresh-button/refresh-button.tsx index f2c41d28..e2fe5484 100644 --- a/src/components/refresh-button/refresh-button.tsx +++ b/src/components/refresh-button/refresh-button.tsx @@ -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) =>