File tree Expand file tree Collapse file tree 3 files changed +1
-4
lines changed
React JS Workshop/origami/src Expand file tree Collapse file tree 3 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,10 @@ import fetchOrigamis from '../../helper-functions/getOrigamis'
7
7
const Posts = ( props ) => {
8
8
const context = useContext ( UserContext )
9
9
const [ origamis , setOrigamis ] = useState ( context . origamis || [ ] ) ;
10
- console . log ( props )
11
10
12
11
const getOrigamis = useCallback ( async ( ) => {
13
12
let origamis = await fetchOrigamis ( props . length )
14
13
setOrigamis ( origamis ) ;
15
- // this.setState({ origamis: origamis })
16
14
} , [ props . length ] ) ;
17
15
18
16
const renderOrigamis = ( ) => {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import styles from './submitButton.module.css'
4
4
const SubmitButton = ( { buttonValue, onClickHandler = null } ) => {
5
5
6
6
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 >
8
8
)
9
9
}
10
10
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ const PublicationsPage = () => {
15
15
const handleSubmit = async ( e ) => {
16
16
e . preventDefault ( )
17
17
const cookieToken = getCookie ( 'x-auth-token' )
18
- // console.log(cookieToken)
19
18
20
19
await fetch ( 'http://localhost:9999/api/origami' , {
21
20
method : "POST" ,
You can’t perform that action at this time.
0 commit comments