diff --git a/src/components/Seek/Seek.js b/src/components/Seek/Seek.js
index d379dbe..70ac9f5 100644
--- a/src/components/Seek/Seek.js
+++ b/src/components/Seek/Seek.js
@@ -1,6 +1,7 @@
import React from "react";
import styled from "@emotion/styled";
import { withTheme } from "emotion-theming";
+import { Link } from "react-router-dom";
import { SIZES } from "../../styles/constants";
import Icon from "../Icon";
@@ -25,12 +26,24 @@ const SeekArrows = styled.div`
grid-gap: 10px;
`;
-const Seek = ({ title = "", prev = "", next = "" }) => (
+const Seek = ({ title = "", prev = "", next = "", disableNext, theme }) => (
{title}
-
-
+
+
+
+
+
+
);
diff --git a/src/components/screens/Day/Day.js b/src/components/screens/Day/Day.js
index 0e91be0..94a642e 100644
--- a/src/components/screens/Day/Day.js
+++ b/src/components/screens/Day/Day.js
@@ -1,5 +1,30 @@
-import React from "react";
+import React, { Component } from "react";
+import { addDays, subDays, format, isAfter, startOfYesterday } from "date-fns";
-const Day = () => Day
;
+import Seek from "../../Seek";
+
+class Day extends Component {
+ render() {
+ const {
+ match: {
+ params: { year, month, day }
+ }
+ } = this.props;
+ const currentDay = new Date(year, month - 1, day);
+ console.log(currentDay);
+ if (!currentDay) return;
+
+ return (
+
+
+
+ );
+ }
+}
export default Day;
diff --git a/src/components/screens/Month/Month.js b/src/components/screens/Month/Month.js
index 5439fc4..ea7876c 100644
--- a/src/components/screens/Month/Month.js
+++ b/src/components/screens/Month/Month.js
@@ -1,5 +1,28 @@
-import React from "react";
+import React, { Component } from "react";
+import { addDays, subDays, format, isToday } from "date-fns";
-const Month = () => Month
;
+import Seek from "../../Seek";
+
+class Month extends Component {
+ render() {
+ const {
+ match: {
+ params: { year, month }
+ }
+ } = this.props;
+ const currentDay = new Date(year, month - 1);
+ console.log(currentDay);
+ return (
+
+
+
+ );
+ }
+}
export default Month;
diff --git a/src/components/screens/User/User.js b/src/components/screens/User/User.js
index 4c673d1..fd1aa4a 100644
--- a/src/components/screens/User/User.js
+++ b/src/components/screens/User/User.js
@@ -1,6 +1,8 @@
import React from "react";
import fire from "../../firebase/fire.js";
+import SignOut from "../../SignOut";
+
class User extends React.Component {
state = {
name: ""
@@ -26,16 +28,19 @@ class User extends React.Component {
render() {
return (
-
+
+
+
+
);
}
}
diff --git a/src/components/screens/Year/Year.js b/src/components/screens/Year/Year.js
index d05da64..76edf1a 100644
--- a/src/components/screens/Year/Year.js
+++ b/src/components/screens/Year/Year.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
-import isToday from "date-fns/is_today";
+import { addYears, subYears, format } from "date-fns";
import Seek from "../../Seek";
@@ -10,13 +10,15 @@ class Year extends Component {
params: { year }
}
} = this.props;
+ const currentDate = new Date(year, 0, 1);
+ console.log(currentDate.getFullYear());
return (
= new Date().getFullYear()}
/>
);
diff --git a/src/styles/theme.js b/src/styles/theme.js
index 1c7c971..319c6ae 100644
--- a/src/styles/theme.js
+++ b/src/styles/theme.js
@@ -1,5 +1,6 @@
const theme = {
LIGHT: {
+ name: "Light",
colors: {
primary: "#2E3136",
secondary: "#999",
@@ -11,6 +12,7 @@ const theme = {
}
},
DARK: {
+ name: "Dark",
colors: {
primary: "#F3F6F8",
secondary: "#9Ba3B0",