Skip to content

Chloe070196 #4 input to create a new post#29

Merged
Chloe070196 merged 8 commits intomainfrom
Chloe070196-#4-input_to_create_a_new_post
Feb 7, 2024
Merged

Chloe070196 #4 input to create a new post#29
Chloe070196 merged 8 commits intomainfrom
Chloe070196-#4-input_to_create_a_new_post

Conversation

@Chloe070196
Copy link
Copy Markdown

@Chloe070196 Chloe070196 commented Feb 7, 2024

@Chloe070196 Chloe070196 linked an issue Feb 7, 2024 that may be closed by this pull request
Comment thread src/components/createPostModal/index.js Outdated
import Button from '../button'
import { postPost } from '../../service/apiClient'
// eslint-disable-next-line camelcase
import jwt_decode from 'jwt-decode'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be fixed with

import jwt_decode as jwtDecode from 'jwt-decode'

Comment thread src/components/posts/index.js Outdated
/>
)
})}
{posts &&
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's tidy this up by doing the posts check before the actual return. Something like:

const Posts = ({posts}) => {
    if(!posts) {
        return <></>
    }
    ...
}

@Chloe070196 Chloe070196 merged commit f92da44 into main Feb 7, 2024
@NazarTymiv NazarTymiv deleted the Chloe070196-#4-input_to_create_a_new_post branch February 7, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Input to create a new post

2 participants