Skip to content

Commit b79390a

Browse files
committed
add tooltip
1 parent 9b8a5d0 commit b79390a

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/popup/main.tsx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,18 @@ const Popup = () => {
173173
</a>
174174
<div className="space-x-2">
175175
{useSelfHosted && !isDone && (
176-
<button
177-
onClick={requestHostPermission}
178-
disabled={isUrlPermissionGranted}
179-
className="btn btn-ghost text-white"
176+
<div
177+
className="tooltip tooltip-bottom"
178+
data-tip="The extension needs explicit permission to make requests to the self hosted API"
180179
>
181-
Grant Permission
182-
</button>
180+
<button
181+
onClick={requestHostPermission}
182+
disabled={isUrlPermissionGranted}
183+
className="btn btn-ghost text-white"
184+
>
185+
Grant Permission
186+
</button>
187+
</div>
183188
)}
184189
<button
185190
onClick={handleSave}

0 commit comments

Comments
 (0)