chore: remove console warnings and console logs

This commit is contained in:
Kyle Gill
2019-04-12 17:11:40 -06:00
parent ee6a1a2d2d
commit 9d689b0100
6 changed files with 8 additions and 12 deletions

View File

@@ -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"

View File

@@ -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 }) => {

View File

@@ -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"

View File

@@ -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"

View File

@@ -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,

View File

@@ -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) -