feat: add tooltip to button for better UX (#17881)

This commit is contained in:
Benny Joo
2024-11-27 15:47:08 +00:00
committed by GitHub
parent a7e99f3674
commit ab9b6024bb
2 changed files with 6 additions and 1 deletions
@@ -46,6 +46,7 @@
"event_request_reassigned": "Your scheduled event was reassigned",
"event_reassigned_subtitle": "You will no longer have the event on your calendar and your round robin likelihood will not be negatively impacted",
"organizer": "Organizer",
"owner_permission_needed": "You need to be an owner of the organization.",
"reassigned_to": "Reassigned to",
"need_to_reschedule_or_cancel": "Need to reschedule or cancel?",
"you_can_view_booking_details_with_this_url": "You can view the booking details from this url {{url}} and add the event to your calendar",
@@ -210,7 +210,11 @@ const GeneralView = ({ currentOrg, isAdminOrOwner, localeProp }: GeneralViewProp
</div>
<SectionBottomActions align="end">
<Button disabled={isDisabled} color="primary" type="submit">
<Button
disabled={isDisabled}
color="primary"
type="submit"
tooltip={!isAdminOrOwner ? t("owner_permission_needed") : undefined}>
{t("update")}
</Button>
</SectionBottomActions>