chore: remove console warnings and console logs
This commit is contained in:
@@ -2,7 +2,7 @@ import React from "react"
|
|||||||
import { StyledLink as Link } from "../elements"
|
import { StyledLink as Link } from "../elements"
|
||||||
import styled from "@emotion/styled"
|
import styled from "@emotion/styled"
|
||||||
/** @jsx jsx */
|
/** @jsx jsx */
|
||||||
import { jsx, css } from "@emotion/core"
|
import { jsx } from "@emotion/core"
|
||||||
import { compose } from "recompose"
|
import { compose } from "recompose"
|
||||||
import { withTheme } from "emotion-theming"
|
import { withTheme } from "emotion-theming"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { Component } from "react"
|
import React from "react"
|
||||||
import { Route, Redirect } from "react-router-dom"
|
import { Route, Redirect } from "react-router-dom"
|
||||||
|
|
||||||
const PrivateRoute = ({ component: Component, authed, ...rest }) => {
|
const PrivateRoute = ({ component: Component, authed, ...rest }) => {
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import React from "react"
|
|||||||
import styled from "@emotion/styled"
|
import styled from "@emotion/styled"
|
||||||
import { withTheme } from "emotion-theming"
|
import { withTheme } from "emotion-theming"
|
||||||
|
|
||||||
import { SIZES } from "../../styles/constants"
|
|
||||||
import Icon from "../Icon"
|
import Icon from "../Icon"
|
||||||
import { H1 } from "../elements"
|
import { H1 } from "../elements"
|
||||||
import { StyledLink as Link } from "../elements"
|
import { StyledLink as Link } from "../elements"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import React from "react"
|
|
||||||
import { withTheme } from "emotion-theming"
|
import { withTheme } from "emotion-theming"
|
||||||
import { Link } from "react-router-dom"
|
import { Link } from "react-router-dom"
|
||||||
import styled from "@emotion/styled"
|
import styled from "@emotion/styled"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { Component } from "react"
|
import React from "react"
|
||||||
import styled from "@emotion/styled"
|
import styled from "@emotion/styled"
|
||||||
/** @jsx jsx */
|
/** @jsx jsx */
|
||||||
import { jsx, css, keyframes } from "@emotion/core"
|
import { jsx, css, keyframes } from "@emotion/core"
|
||||||
@@ -62,7 +62,7 @@ const LoadingSpinner = styled(BeatLoader)`
|
|||||||
|
|
||||||
const AUTOSAVE_DELAY = 2000
|
const AUTOSAVE_DELAY = 2000
|
||||||
|
|
||||||
class Day extends Component {
|
class Day extends React.Component {
|
||||||
state = {
|
state = {
|
||||||
text: "",
|
text: "",
|
||||||
loading: true,
|
loading: true,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React, { Component } from "react"
|
import { Component } from "react"
|
||||||
import { withRouter, Link } from "react-router-dom"
|
import { Link } from "react-router-dom"
|
||||||
/** @jsx jsx */
|
/** @jsx jsx */
|
||||||
import { jsx, css, keyframes } from "@emotion/core"
|
import { jsx, css, keyframes } from "@emotion/core"
|
||||||
import styled from "@emotion/styled"
|
import styled from "@emotion/styled"
|
||||||
@@ -58,8 +58,7 @@ class Search extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const entries = this.getEntries()
|
this.getEntries()
|
||||||
console.log(entries)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onChange = event => {
|
onChange = event => {
|
||||||
@@ -70,7 +69,7 @@ class Search extends Component {
|
|||||||
|
|
||||||
filterEntries = searchTerm => {
|
filterEntries = searchTerm => {
|
||||||
const { allEntries } = this.state
|
const { allEntries } = this.state
|
||||||
if (searchTerm == "") {
|
if (searchTerm === "") {
|
||||||
this.setState({ entries: allEntries })
|
this.setState({ entries: allEntries })
|
||||||
} else {
|
} else {
|
||||||
const filteredEntries = allEntries.filter(entry => {
|
const filteredEntries = allEntries.filter(entry => {
|
||||||
@@ -87,7 +86,6 @@ class Search extends Component {
|
|||||||
.where("userId", "==", authUser.uid)
|
.where("userId", "==", authUser.uid)
|
||||||
.get()
|
.get()
|
||||||
const entries = entriesRef.docs.map(doc => doc.data())
|
const entries = entriesRef.docs.map(doc => doc.data())
|
||||||
console.log(entries)
|
|
||||||
// const sortedEntries = entries.sort((a, b) => {
|
// const sortedEntries = entries.sort((a, b) => {
|
||||||
// return (
|
// return (
|
||||||
// new Date(b.year, b.month - 1, b.day) -
|
// new Date(b.year, b.month - 1, b.day) -
|
||||||
|
|||||||
Reference in New Issue
Block a user