Skip to content

Commit

Permalink
Update styles for latest button changes (#8)
Browse files Browse the repository at this point in the history
* Update styles for latest button changes

* fix my spelling failure
  • Loading branch information
ErikMHummel authored and Daniel Brain committed Jul 26, 2017
1 parent 58449d9 commit 2b99c0a
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/app/client/js/components/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let layout = [
{
name: 'Button Styles',
patterns: [
patterns.styles, patterns.credit, patterns.pay, patterns.buynow
patterns.checkout, patterns.credit, patterns.pay, patterns.buynow
]
},

Expand Down
3 changes: 3 additions & 0 deletions src/app/client/js/patterns/buynow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export let buynow = {
label: 'buynow',
fundingicons: true, // optional
branding: true // optional
size: 'small', // small | medium | large | responsive
shape: 'rect', // pill | rect
color: 'gold' // gold | blue | silve | black
},
// PayPal Client IDs - replace with your own
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@

import React from 'react';

export let styles = {
export let checkout = {

slug: 'styles',
slug: 'checkout',

name: `Button Styles`,
name: `Checkout Button`,

fullName: `Express Checkout Custom Button Styles`,
fullName: `Express Checkout Custom Button`,

intro: (
<p>Customize your <b>PayPal</b> button with colors, sizes and shapes.</p>
<p>Customize your <b>PayPal Checkout</b> button with colors, sizes and shapes.</p>
),

code: (ctx) => `
Expand All @@ -31,12 +31,15 @@ export let styles = {
// Specify the style of the button
style: {
label: 'checkout', // checkout | credit | pay
size: 'small', // small | medium | responsive
label: 'checkout'
size: 'small', // small | medium | large | responsive
shape: 'pill', // pill | rect
color: 'blue' // gold | blue | silver
color: 'blue' // gold | blue | silver | black
},
// PayPal Client IDs - replace with your own
// Create a PayPal app: https://developer.paypal.com/developer/applications/create
client: {
sandbox: 'AZDxjDScFpQtjWTOUtWKbyN_bDt4OgqaF4eYXlewfBP4-8aqX3PiV8e1GWU6liB2CUXlkA59kJXE7M6R',
production: '<insert production client id>'
Expand Down
5 changes: 3 additions & 2 deletions src/app/client/js/patterns/credit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ export let credit = {
style: {
label: 'credit',
size: 'small', // small | medium
shape: 'rect' // pill | rect
size: 'small', // small | medium | large | responsive
shape: 'rect', // pill | rect
color: 'creditblue' // creditblue | black
},
// PayPal Client IDs - replace with your own
Expand Down
2 changes: 1 addition & 1 deletion src/app/client/js/patterns/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export * from './client';
export * from './server';
export * from './braintree';
export * from './styles';
export * from './checkout';
export * from './credit';
export * from './pay';
export * from './buynow';
Expand Down
5 changes: 4 additions & 1 deletion src/app/client/js/patterns/pay.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ export let pay = {
// Specify the style of the button
style: {
label: 'pay'
label: 'pay',
size: 'small', // small | medium | large | responsive
shape: 'rect', // pill | rect
color: 'gold' // gold | blue | silver | black
},
// PayPal Client IDs - replace with your own
Expand Down

0 comments on commit 2b99c0a

Please sign in to comment.