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