chore: remove debug console.log statements

This commit is contained in:
Jordan Knott
2020-08-12 14:44:28 -05:00
parent 6761d4571e
commit 2e9767f1a0
20 changed files with 14 additions and 100 deletions

View File

@ -1,19 +1,19 @@
import React, {useState} from 'react';
import {action} from '@storybook/addon-actions';
import React, { useState } from 'react';
import { action } from '@storybook/addon-actions';
import BaseStyles from 'App/BaseStyles';
import NormalizeStyles from 'App/NormalizeStyles';
import {theme} from 'App/ThemeStyles';
import { theme } from 'App/ThemeStyles';
import produce from 'immer';
import styled, {ThemeProvider} from 'styled-components';
import Checklist, {ChecklistItem} from '.';
import styled, { ThemeProvider } from 'styled-components';
import Checklist, { ChecklistItem } from '.';
export default {
component: Checklist,
title: 'Checklist',
parameters: {
backgrounds: [
{name: 'gray', value: '#f8f8f8', default: true},
{name: 'white', value: '#ffffff'},
{ name: 'gray', value: '#f8f8f8', default: true },
{ name: 'white', value: '#ffffff' },
],
},
};
@ -115,7 +115,6 @@ export const Default = () => {
]);
}}
onDeleteItem={itemID => {
console.log(`itemID ${itemID}`);
setItems(items.filter(item => item.id !== itemID));
}}
onChangeItemName={(itemID, currentName) => {
@ -138,7 +137,7 @@ export const Default = () => {
key={item.id}
wrapperProps={{}}
handleProps={{}}
checklistID='id'
checklistID="id"
itemID={item.id}
name={item.name}
complete={item.complete}