mirror of
https://github.com/plankanban/planka.git
synced 2025-08-03 12:35:26 +02:00
Initial commit
This commit is contained in:
commit
36fe34e8e1
583 changed files with 91539 additions and 0 deletions
19
client/src/components/BoardWrapper.jsx
Executable file
19
client/src/components/BoardWrapper.jsx
Executable file
|
@ -0,0 +1,19 @@
|
|||
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;
|
Loading…
Add table
Add a link
Reference in a new issue