tooltips fixes

pull/5370/head
lianahus 2 years ago committed by Aniket
parent 44745a0663
commit 6ab8a212ab
  1. 2
      libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx
  2. 21
      libs/remix-ui/plugin-manager/src/lib/components/permissionsSettings.tsx

@ -68,7 +68,7 @@ function ActivePluginCard ({
placement="right" placement="right"
tooltipId={`pluginManagerInactiveActiveBtn${profile.name}`} tooltipId={`pluginManagerInactiveActiveBtn${profile.name}`}
tooltipClasses="text-nowrap" tooltipClasses="text-nowrap"
tooltipText={`Dectivate ${profile.displayName || profile.name}`} tooltipText={`Deactivate ${profile.displayName || profile.name}`}
> >
<button <button
onClick={() => { onClick={() => {

@ -5,6 +5,7 @@ import { FormattedMessage, useIntl } from 'react-intl'
import { ModalDialog } from '@remix-ui/modal-dialog' import { ModalDialog } from '@remix-ui/modal-dialog'
import useLocalStorage from '../custom-hooks/useLocalStorage' import useLocalStorage from '../custom-hooks/useLocalStorage'
import { PluginPermissions } from '../../types' import { PluginPermissions } from '../../types'
import { CustomTooltip } from '@remix-ui/helper'
function PermisssionsSettings () { function PermisssionsSettings () {
const [modalVisibility, setModalVisibility] = useState<boolean>(true) const [modalVisibility, setModalVisibility] = useState<boolean>(true)
@ -130,12 +131,20 @@ function PermisssionsSettings () {
</form> </form>
</ModalDialog> </ModalDialog>
<footer className="bg-light remixui_permissions remix-bg-opacity"> <footer className="bg-light remixui_permissions remix-bg-opacity">
<button <CustomTooltip
onClick={openModal} placement={"top"}
className="btn btn-primary settings-button" tooltipId="pmPermissions"
data-id="pluginManagerPermissionsButton"> tooltipClasses="text-nowrap"
<FormattedMessage id="pluginManager.Permissions" /> tooltipText={"Manage plugins Permissions"}
</button> key={"keypmPermissions"}
>
<button
onClick={openModal}
className="btn btn-primary settings-button"
data-id="pluginManagerPermissionsButton">
<FormattedMessage id="pluginManager.Permissions" />
</button>
</CustomTooltip>
</footer> </footer>
</Fragment> </Fragment>
) )

Loading…
Cancel
Save