From 85f38801a34825be69fec27ae523537fbc72f1d6 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Fri, 7 Dec 2018 12:47:16 +0300
Subject: mobile navigation
---
vnext/src/components/Avatar.js | 4 ++--
vnext/src/components/Feeds.js | 4 +++-
vnext/src/components/Header.js | 5 +++--
vnext/src/components/NavigationIcon.css | 3 +++
vnext/src/components/NavigationIcon.js | 19 +++++++++++++++++++
vnext/src/components/Post.js | 4 ++--
vnext/src/components/UserInfo.js | 4 ++--
7 files changed, 34 insertions(+), 9 deletions(-)
create mode 100644 vnext/src/components/NavigationIcon.css
create mode 100644 vnext/src/components/NavigationIcon.js
(limited to 'vnext/src/components')
diff --git a/vnext/src/components/Avatar.js b/vnext/src/components/Avatar.js
index dfa197c1..9cb03267 100644
--- a/vnext/src/components/Avatar.js
+++ b/vnext/src/components/Avatar.js
@@ -6,13 +6,13 @@ import { UserType } from './Types';
const Avatar = React.memo(props => {
return (
-
+
-
+
{props.user.uname}
diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js
index be9a1573..e8558084 100644
--- a/vnext/src/components/Feeds.js
+++ b/vnext/src/components/Feeds.js
@@ -42,7 +42,9 @@ export function Blog(props) {
};
return (
<>
-
+
+
+
>
);
diff --git a/vnext/src/components/Header.js b/vnext/src/components/Header.js
index 43b4a676..8bf4bc8d 100644
--- a/vnext/src/components/Header.js
+++ b/vnext/src/components/Header.js
@@ -66,10 +66,11 @@ export default class Header extends React.Component {
this.wScrollBefore = this.wScrollCurrent;
}
render() {
- return ();
+ return ();
}
}
Header.propTypes = {
- children: PropTypes.node
+ children: PropTypes.node,
+ style: PropTypes.style
};
diff --git a/vnext/src/components/NavigationIcon.css b/vnext/src/components/NavigationIcon.css
new file mode 100644
index 00000000..bc5f5ac9
--- /dev/null
+++ b/vnext/src/components/NavigationIcon.css
@@ -0,0 +1,3 @@
+#navicon {
+ padding: 12px;
+}
\ No newline at end of file
diff --git a/vnext/src/components/NavigationIcon.js b/vnext/src/components/NavigationIcon.js
new file mode 100644
index 00000000..5c5415ef
--- /dev/null
+++ b/vnext/src/components/NavigationIcon.js
@@ -0,0 +1,19 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+
+import Icon from './Icon';
+
+import './NavigationIcon.css';
+
+export default function NavigationIcon(props) {
+ return (
+
+
+
+ );
+}
+
+NavigationIcon.propTypes = {
+ onToggle: PropTypes.func.isRequired
+};
+
diff --git a/vnext/src/components/Post.js b/vnext/src/components/Post.js
index ce64018a..1776fe78 100644
--- a/vnext/src/components/Post.js
+++ b/vnext/src/components/Post.js
@@ -42,11 +42,11 @@ export default class Post extends React.Component {
render() {
return (
-
+
*weather It is very cold today!
-
+
);
}
diff --git a/vnext/src/components/UserInfo.js b/vnext/src/components/UserInfo.js
index bd9cbc5f..7b4ae2ee 100644
--- a/vnext/src/components/UserInfo.js
+++ b/vnext/src/components/UserInfo.js
@@ -27,7 +27,7 @@ export default class UserInfo extends React.Component {
render() {
const { user } = this.state;
return (
-
+ <>
Was online recently
@@ -78,7 +78,7 @@ export default class UserInfo extends React.Component {
>
}
-
+ >
);
}
}
--
cgit v1.2.3