From a59e90b66e5d17c12d76ab37d14bcdf765ccceaa Mon Sep 17 00:00:00 2001 From: Francisco Moreno Cantero Date: Wed, 6 May 2020 10:33:19 +0200 Subject: [PATCH] feat(title): add menu to header --- .eslintrc | 4 +++- src/components/title/index.js | 16 +++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.eslintrc b/.eslintrc index 890f8e9..36ac273 100644 --- a/.eslintrc +++ b/.eslintrc @@ -10,6 +10,8 @@ "comma-dangle": ["error", "only-multiline"], "react/prefer-stateless-function": "off", "object-curly-newline": ["error", { "multiline": true }], - "max-len": "off" + "max-len": "off", + "react/jsx-props-no-spreading": "off", + "react/jsx-indent-props": "off" } } \ No newline at end of file diff --git a/src/components/title/index.js b/src/components/title/index.js index 271d3de..7495b56 100644 --- a/src/components/title/index.js +++ b/src/components/title/index.js @@ -1,16 +1,22 @@ import React, { Component } from 'react'; -import { Layout } from 'antd'; +import { Layout, Menu } from 'antd'; +import { Link } from 'react-router-dom'; const { Header } = Layout; export default class Title extends Component { render() { - const { title } = this.props; return (
-
- {title} -
+
+ + + Cellar + + + Add + +
); }