mirror of
https://github.com/plankanban/planka.git
synced 2025-07-24 15:49:46 +02:00
30 lines
774 B
JavaScript
30 lines
774 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
import HeaderContainer from '../../containers/HeaderContainer';
|
|
import ProjectContainer from '../../containers/ProjectContainer';
|
|
import BoardActionsContainer from '../../containers/BoardActionsContainer';
|
|
|
|
import styles from './Fixed.module.scss';
|
|
|
|
function Fixed({ projectId, board }) {
|
|
return (
|
|
<div className={styles.wrapper}>
|
|
<HeaderContainer />
|
|
{projectId && <ProjectContainer />}
|
|
{board && !board.isFetching && <BoardActionsContainer />}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
Fixed.propTypes = {
|
|
projectId: PropTypes.string,
|
|
board: PropTypes.object, // eslint-disable-line react/forbid-prop-types
|
|
};
|
|
|
|
Fixed.defaultProps = {
|
|
projectId: undefined,
|
|
board: undefined,
|
|
};
|
|
|
|
export default Fixed;
|