Skip to content

Commit

Permalink
chore: update profile edit comp
Browse files Browse the repository at this point in the history
  • Loading branch information
gitanjli525 committed Sep 19, 2024
1 parent 7920a9f commit d6b06d7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module InfoViewForWebhooks = {
@react.component
let make = (~heading, ~subHeading, ~isCopy=false, ~customComp=React.null) => {
let make = (~heading, ~subHeading, ~isCopy=false, ~customRightComp=?) => {
let showToast = ToastState.useShowToast()
let onCopyClick = ev => {
ev->ReactEvent.Mouse.stopPropagation
Expand All @@ -22,7 +22,7 @@ module InfoViewForWebhooks = {
}}
/>
</RenderIf>
{customComp}
{customRightComp->Option.getOr(React.null)}
</div>
</div>
}
Expand Down Expand Up @@ -479,7 +479,7 @@ let make = (~webhookOnly=false, ~showFormOnly=false, ~profileId="") => {
<InfoViewForWebhooks
heading="Profile Name"
subHeading=busiProfieDetails.profile_name
customComp={<EditProfileName
customRightComp={<EditProfileName
defaultProfileName=busiProfieDetails.profile_name
profileId=busiProfieDetails.profile_id
/>}
Expand Down

0 comments on commit d6b06d7

Please sign in to comment.