1234567891011121314151617181920212223 |
- import { Link } from 'react-router-dom'
- import { Button } from 'antd'
- import React, { useState, useEffect } from 'react'
- export const EditMyPostButton = ({ _id}) => {
- return (
- <>
- <Link to={`/edit/post/${_id}`}>
- <Button
- style={{
- marginLeft: '200px',
- marginTop: '10px', width: '100px'
- }}
- size="large"
- type="primary"
- >
- Edit Post
- </Button>
- </Link>
- </>
- )
- }
|