cnap-cobre/synapse

View on GitHub
frontend/src/components/FileBrowserControls/BrowserRefresh/BrowserRefresh.js

Summary

Maintainability
A
0 mins
Test Coverage
// @flow
 
import Button from 'react-bootstrap/lib/Button';
import { TiRefresh } from 'react-icons/ti';
import React, { Component } from 'react';
 
type Props = {
handleRefresh(): typeof undefined,
}
 
const BrowserRefresh = (props: Props) => {
const { handleRefresh } = props;
 
return (
 
<Button
id="RefreshButton"
bsSize="xsmall"
onClick={handleRefresh}
style={{
height: '2.7em',
marginTop: '0.5em',
}}
>
<TiRefresh />
&nbsp;Refresh
</Button>
 
);
};
 
export default BrowserRefresh;