3
app/components/Nav/index.js
Executable file
3
app/components/Nav/index.js
Executable file
@@ -0,0 +1,3 @@
|
||||
import { Nav } from './nav';
|
||||
|
||||
export default Nav;
|
25
app/components/Nav/nav.js
Executable file
25
app/components/Nav/nav.js
Executable file
@@ -0,0 +1,25 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import { Nav as BsNav } from 'reactstrap';
|
||||
|
||||
const Nav = ({ accent, className, ...otherProps }) => {
|
||||
return (
|
||||
<BsNav
|
||||
className={
|
||||
classNames(className, 'nav', { 'nav-accent': accent })
|
||||
}
|
||||
{ ...otherProps }
|
||||
/>
|
||||
);
|
||||
};
|
||||
Nav.propTypes = {
|
||||
...BsNav.propTypes,
|
||||
accent: PropTypes.bool,
|
||||
};
|
||||
Nav.defaultProps = {
|
||||
accent: false
|
||||
};
|
||||
|
||||
export { Nav };
|
Reference in New Issue
Block a user