Skip to content

#53 Improve the functionality of the delete post button. #304

@miresque

Description

@miresque

Tasks (Front-end)

  1. Implement material UI for the delete button on the posts (https://mui.com/material-ui/react-button/) to utilize existing technologies in the application and to keep it consistent with the rest of the UI elements.

  2. Change button manipulation from via the DOM to via the useState hook(https://reactjs.org/docs/hooks-state.html), I will link the button data to a state and change the button contents by changing the state.

State Example: const [delBtnStyles, setDelBtnStyles] = useState({ text: 'Delete', color: 'primary' })

This will be done to have more control over the button and its functionality, especially as the app grows more and increases in complexity, also using a State will ensure that I utilize more of React’s features

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions