Skip to content

Commit ee4ea53

Browse files
committed
update demo
1 parent a40c794 commit ee4ea53

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

demo/demo-functional.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const Demo = () => {
1010
const [focusedFieldName, setFocusedField] = React.useState('')
1111
const numberField = React.useRef()
1212
const cvvField = React.useRef();
13-
console.log({ focusedFieldName })
13+
1414
const onAuthorizationSuccess = () => {
1515
numberField.current.focus();
1616
}

demo/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { render } from 'react-dom';
22
import React from 'react';
33
import { Braintree, HostedField } from '../src/index';
4-
//import Demo from './demo-class.jsx'
5-
import Demo from './demo-functional.jsx'
4+
import Demo from './demo-class.jsx'
5+
//import Demo from './demo-functional.jsx'
66

77
render(React.createElement(Demo), document.getElementById('root'));

0 commit comments

Comments
 (0)