mirror of
https://github.com/plankanban/planka.git
synced 2025-08-04 04:55:25 +02:00
19 lines
412 B
JavaScript
Executable file
19 lines
412 B
JavaScript
Executable file
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { Loader } from 'semantic-ui-react';
|
|
|
|
import BoardContainer from '../containers/BoardContainer';
|
|
|
|
const BoardWrapper = React.memo(({ isFetching }) => {
|
|
if (isFetching) {
|
|
return <Loader active />;
|
|
}
|
|
|
|
return <BoardContainer />;
|
|
});
|
|
|
|
BoardWrapper.propTypes = {
|
|
isFetching: PropTypes.bool.isRequired,
|
|
};
|
|
|
|
export default BoardWrapper;
|