From 85598d2db2be166dda2d6ff911b1e53d0294a48e Mon Sep 17 00:00:00 2001 From: Tyler McGinnis Date: Sun, 21 Jul 2019 21:00:26 -0600 Subject: [PATCH 1/6] Code for 2-index --- app/components/Battle.js | 6 ++--- app/components/Card.js | 2 +- app/components/Nav.js | 4 ++-- app/index.js | 51 +++++++++++++++++----------------------- 4 files changed, 28 insertions(+), 35 deletions(-) diff --git a/app/components/Battle.js b/app/components/Battle.js index 4458e7e..5feee36 100644 --- a/app/components/Battle.js +++ b/app/components/Battle.js @@ -8,7 +8,7 @@ import { Link } from 'react-router-dom' function Instructions () { return ( - {({ theme }) => ( + {(theme) => (

Instructions @@ -50,7 +50,7 @@ class PlayerInput extends React.Component { render() { return ( - {({ theme }) => ( + {(theme) => (