Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

(issue #516) clean up commented codes and todo usages #521

Merged
merged 1 commit into from
Oct 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ module.exports = {
module: {
strictExportPresence: true,
rules: [
// TODO: Disable require.ensure as it's not a standard language feature.
// We are waiting for https://github.com/facebookincubator/create-react-app/issues/2176.
// { parser: { requireEnsure: false } },

// First, run the linter.
// It's important to do this before Babel processes the JS.
{
Expand Down
4 changes: 0 additions & 4 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ module.exports = {
module: {
strictExportPresence: true,
rules: [
// TODO: Disable require.ensure as it's not a standard language feature.
// We are waiting for https://github.com/facebookincubator/create-react-app/issues/2176.
// { parser: { requireEnsure: false } },

// First, run the linter.
// It's important to do this before Babel processes the JS.
{
Expand Down
2 changes: 0 additions & 2 deletions src/scenes/home/families/jumboQuote/jumboQuote.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ class JumboQuote extends Component {
};
}

// TODO: Ditch bluebird promise for axios to drop a dependency
// TODO: Is there a need to move the quotes to a back-end API endpoint, or should we just bail on the promise-based API request idea for this data?
componentDidMount() {
Promise.try(
() => quotes.quotes[Math.floor(Math.random() * quotes.quotes.length)]
Expand Down
1 change: 0 additions & 1 deletion src/scenes/home/history/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { Component } from 'react';
import Section from 'shared/components/section/section';
import QuoteBanner from 'shared/components/quoteBanner/quoteBanner';
import Timeline from './timeline/timeline';
// import styles from './history.css';

class History extends Component {
render() {
Expand Down
2 changes: 0 additions & 2 deletions src/scenes/home/history/timelineEvent/timelineEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import PropTypes from 'prop-types';
import styles from './timelineEvent.css';

class TimelineEvent extends Component {
// TODO: Force eventTitle to Title case with Regex

render() {
return (
<div className={styles.eventContainer}>
Expand Down
8 changes: 0 additions & 8 deletions src/scenes/home/landing/whatWeDo/whatWeDo.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,21 @@ class WhatWeDo extends Component {
image={image1}
title={content.items[0].title}
cardText={content.items[0].body}
// buttonText={content.items[0].buttonText}
// link={content.items[0].linkTo}
/>
<ImageCard
image={image2}
title={content.items[1].title}
cardText={content.items[1].body}
// buttonText={content.items[1].buttonText}
// link={content.items[1].linkTo}
/>
<ImageCard
image={image3}
title={content.items[2].title}
cardText={content.items[2].body}
// buttonText={content.items[2].buttonText}
// link={content.items[2].linkTo}
/>
<ImageCard
image={image4}
title={content.items[3].title}
cardText={content.items[3].body}
// buttonText={content.items[3].buttonText}
// link={content.items[3].linkTo}
/>
</div>
</Section>
Expand Down
1 change: 0 additions & 1 deletion src/shared/components/join/join.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
// import PropTypes from 'prop-types';
import Section from 'shared/components/section/section';
import LinkButton from 'shared/components/linkButton/linkButton';
import styles from './join.css';
Expand Down
2 changes: 0 additions & 2 deletions src/shared/utils/cookieHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ const validToken = (token) => {
const jwt = jwt_decode(token);
const currentTime = new Date().getTime() / 1000;

// TODO we could validate the signature as well (issue#281)

if (currentTime > jwt.exp) { return false; }

return true;
Expand Down