Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a061295

Browse files
committed
Initial commit - work in progress (migrate to typescript)
1 parent 42b378c commit a061295

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

React JS Workshop/origami/src/components/posts/posts.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ import fetchOrigamis from '../../helper-functions/getOrigamis'
77
const Posts = (props) => {
88
const context = useContext(UserContext)
99
const [origamis, setOrigamis] = useState(context.origamis || []);
10-
console.log(props)
1110

1211
const getOrigamis = useCallback(async () => {
1312
let origamis = await fetchOrigamis(props.length)
1413
setOrigamis(origamis);
15-
// this.setState({ origamis: origamis })
1614
}, [props.length]);
1715

1816
const renderOrigamis = () => {

React JS Workshop/origami/src/components/submitButton/submitButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import styles from './submitButton.module.css'
44
const SubmitButton = ({ buttonValue, onClickHandler = null }) => {
55

66
return (
7-
<button type="submit" onClick = {onClickHandler} className={styles["submit-button"]}>{buttonValue}</button>
7+
<button type="submit" onClick={onClickHandler} className={styles["submit-button"]}>{buttonValue}</button>
88
)
99
}
1010

React JS Workshop/origami/src/pages/publications/publications.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const PublicationsPage = () => {
1515
const handleSubmit = async (e) => {
1616
e.preventDefault()
1717
const cookieToken = getCookie('x-auth-token')
18-
// console.log(cookieToken)
1918

2019
await fetch('http://localhost:9999/api/origami', {
2120
method: "POST",

0 commit comments

Comments
 (0)