Skip to content

68 edit recipe btn#81

Open
m-lyon wants to merge 4 commits intomainfrom
68-edit-recipe-btn
Open

68 edit recipe btn#81
m-lyon wants to merge 4 commits intomainfrom
68-edit-recipe-btn

Conversation

@m-lyon
Copy link
Copy Markdown
Owner

@m-lyon m-lyon commented Mar 30, 2026

No description provided.

m-lyon added 4 commits March 29, 2026 21:20
Create a new EditRecipeButton component that renders a Mantine ActionIcon
with a tooltip, using react-icons MdEdit icon. The button links to the
edit recipe page via react-router-dom Link component.

Refs #68
Add permission-gated edit button to the title area using Option A layout
(Flex row with title left, edit button right). Uses useUser() hook to
check if current user is recipe owner or admin before rendering.

Refs #68
Test 5 scenarios: admin sees button, non-admin owner sees button,
logged-out user does not, non-owner user does not, and clicking the
button navigates to the edit page.

Refs #68
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.

1 participant