Skip to content

Commit

Permalink
feat: Add InfoTooltip for the AdminTools view
Browse files Browse the repository at this point in the history
  • Loading branch information
cyaiox committed Feb 18, 2025
1 parent ef3f70b commit 547093e
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { withSdk } from '../../../hoc/withSdk'
import { useComponentValue } from '../../../hooks/sdk/useComponentValue'
import { useHasComponent } from '../../../hooks/sdk/useHasComponent'

import { Accordion } from '../../ui'
import { Accordion, InfoTooltip } from '../../ui'
import { Container } from '../../Container'
import { Block } from '../../Block'

Expand Down Expand Up @@ -42,7 +42,17 @@ const AdminToolkitView = withSdk<Props>(({ sdk, entity }) => {
if (!hasAdmintoolkit) return null

return (
<Container label="Admin Tools" className="AdminToolkitViewInspector">
<Container
label="Admin Tools"
className="AdminToolkitViewInspector"
rightContent={
<InfoTooltip
text="Admin Tools enables a whole set of in-world actions for special admin users."
link="https://docs.decentraland.org/creator/smart-items/#admin-tools"
type="help"
/>
}
>
<Block>
<AdminAllowListControl entity={entity} />
</Block>
Expand Down

0 comments on commit 547093e

Please sign in to comment.