EditPostButton.jsx 444 B

12345678910111213141516171819202122
  1. import { Link } from 'react-router-dom'
  2. import { Button } from 'antd'
  3. export const EditMyPostButton = ({ _id }) => {
  4. return (
  5. <>
  6. <Link to={`/edit/post/${_id}`}>
  7. <Button
  8. style={{
  9. // marginLeft: '200px',
  10. // marginTop: '10px',
  11. width: '100px',
  12. }}
  13. size="large"
  14. type="primary"
  15. >
  16. Edit Post
  17. </Button>
  18. </Link>
  19. </>
  20. )
  21. }