Background gradients, migrate from CSS to SCSS, remove !important
This commit is contained in:
24
client/src/components/Fixed/Fixed.jsx
Normal file
24
client/src/components/Fixed/Fixed.jsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import HeaderContainer from '../../containers/HeaderContainer';
|
||||
import ProjectContainer from '../../containers/ProjectContainer';
|
||||
|
||||
import styles from './Fixed.module.scss';
|
||||
|
||||
const Fixed = ({ projectId }) => (
|
||||
<div className={styles.wrapper}>
|
||||
<HeaderContainer />
|
||||
{projectId && <ProjectContainer />}
|
||||
</div>
|
||||
);
|
||||
|
||||
Fixed.propTypes = {
|
||||
projectId: PropTypes.string,
|
||||
};
|
||||
|
||||
Fixed.defaultProps = {
|
||||
projectId: undefined,
|
||||
};
|
||||
|
||||
export default Fixed;
|
||||
6
client/src/components/Fixed/Fixed.module.scss
Normal file
6
client/src/components/Fixed/Fixed.module.scss
Normal file
@@ -0,0 +1,6 @@
|
||||
:global(#app) {
|
||||
.wrapper {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
3
client/src/components/Fixed/index.js
Normal file
3
client/src/components/Fixed/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import Fixed from './Fixed';
|
||||
|
||||
export default Fixed;
|
||||
Reference in New Issue
Block a user