This PR addresses Issue #19 which requests the ability to add a new dial to a group through the UI.
Changes
Changed attribute names in the config to add clarity.
url -> link
image -> icon
Created NewDialform component which is basically a form version of Confirm.
Created showAddDial with useState to manage the visibility of the NewDialForm component.
Created insertNewDial function in useGroupDetails and passed it to the NewDialForm instead of writing the function in that component and exposing setDials directly.
Summary
This PR addresses Issue #19 which requests the ability to add a new dial to a group through the UI.
Changes
config
to add clarity.url
->link
image
->icon
NewDialform
component which is basically a form version ofConfirm
.showAddDial
withuseState
to manage the visibility of theNewDialForm
component.insertNewDial
function inuseGroupDetails
and passed it to theNewDialForm
instead of writing the function in that component and exposingsetDials
directly.