-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use <Header /> on <Layout />, also rename <Nav /> to <Navigation />
- Loading branch information
1 parent
9b0a8fe
commit f5abcc6
Showing
7 changed files
with
55 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// @flow strict | ||
import React, { Component } from 'react'; | ||
// $FlowIgnore | ||
import { connect } from 'react-redux'; | ||
|
||
import Navigation from '@/components/core/Navigation/Navigation'; | ||
|
||
import './Header.scss'; | ||
|
||
type PropsType = {}; | ||
|
||
type StateType = {}; | ||
|
||
class Header extends Component<PropsType, StateType> { | ||
state = {}; | ||
|
||
render() { | ||
return ( | ||
<div className="header"> | ||
<Navigation /> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
const mapStateToProps = () => ({}); | ||
|
||
const mapDispatchToProps = {}; | ||
|
||
export default connect(mapStateToProps, mapDispatchToProps)(Header); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@import '~styles/functions/px-to-rem'; | ||
@import '~styles/mixins'; | ||
@import '~styles/variables'; | ||
|
||
.header { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// @flow strict | ||
import React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
|
||
import Header from './Header'; | ||
|
||
describe('Header', () => { | ||
const defaultProps = {}; | ||
|
||
it('tests something', () => { | ||
shallow(<Header {...defaultProps} />); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.