diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-03-14 12:19:54 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-03-14 12:19:54 -0400 |
| commit | 331da87bd53bc1fb79063d142764c75df9f32170 (patch) | |
| tree | d80aac98154a811fdf57b10e90ac0350fe14568e /frontend/components/Nav.js | |
| parent | 46a0ba30ef54a7e36206481a4f5b2bf1f9702fca (diff) | |
tests
Diffstat (limited to 'frontend/components/Nav.js')
| -rw-r--r-- | frontend/components/Nav.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/frontend/components/Nav.js b/frontend/components/Nav.js index aa0300b..3d7f0f6 100644 --- a/frontend/components/Nav.js +++ b/frontend/components/Nav.js @@ -1,8 +1,9 @@ +import React, { Fragment } from 'react'; import Link from 'next/link'; import styled from 'styled-components'; -import { Fragment } from 'react'; -import { userEnhancer } from '../enhancers/enhancers'; import { compose } from 'react-apollo'; +import PropTypes from 'prop-types'; +import { userEnhancer } from '../enhancers/enhancers'; import CartCount from './CartCount'; import Signout from './Signout'; import { UIContext } from './UIContext'; @@ -58,6 +59,9 @@ const StyledUl = styled.ul` `; class Nav extends React.Component { + static propTypes = { + currentUser: PropTypes.object.isRequired, + }; componentDidMount() { this.props.currentUser.refetch(); } @@ -106,3 +110,4 @@ class Nav extends React.Component { } export default compose(userEnhancer)(Nav); +export { Nav }; |
