Skip to content

Commit b013add

Browse files
committed
fix header
1 parent f283563 commit b013add

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

server/client/src/components/Header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class Header extends Component {
1212
return <li><a href="/auth/google">Login With Google</a></li>;
1313
default:
1414
return [
15-
<li><Payments /></li>,
16-
<li><a href="/api/logout">Logout</a></li>
15+
<li key="1"><Payments /></li>,
16+
<li key="2"><a href="/api/logout">Logout</a></li>
1717
];
1818
}
1919
}

server/client/src/components/Payments.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@ class Payments extends Component {
55
render() {
66
return (
77
<StripeCheckout
8+
name="Emaily"
9+
description="$5 for 5 email credits"
810
amount={500}
911
token={token => console.log(token)}
1012
stripeKey={process.env.REACT_APP_STRIPE_KEY}
11-
/>
13+
>
14+
<button className="btn">
15+
Add Credits
16+
</button>
17+
</StripeCheckout>
1218
);
1319
}
1420
}

0 commit comments

Comments
 (0)