Skip to content

Commit 32c24a9

Browse files
committed
Adds tooltip to constant file
1 parent 2dab94b commit 32c24a9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/shared/bricks/VisitBricksButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { TOOLTIPS_DICT } from "@/src/util/tooltip-constants";
12
import { Tooltip } from "@nextui-org/react";
23
import { useMemo } from "react";
34

@@ -11,7 +12,7 @@ export function VisitBricksButton(props: { urlExtension?: "generators" | "extrac
1112
return "bg-white text-gray-900 text font-semibold px-4 py-2 rounded-md border border-gray-300 hover:bg-gray-50 focus:outline-none " + toTextSize(props.size)
1213
}, [props.size])
1314

14-
return <Tooltip content="Our ready to be pasted code snippets" placement={props.tooltipPlacement || "top"} color="invert" className="cursor-auto">
15+
return <Tooltip content={TOOLTIPS_DICT.GENERAL.VISIT_BRICKS} placement={props.tooltipPlacement || "top"} color="invert" className="cursor-auto">
1516
<a href={props.urlExtension ? BASE_URL + props.urlExtension : BASE_URL} target="_blank" rel="noreferrer">
1617
<button
1718
className={buttonClasses}>

src/util/tooltip-constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const TOOLTIPS_DICT = {
2626
'USERS': 'Home page - Users',
2727
'SHOW_PASSWORD': 'Show password',
2828
'HIDE_PASSWORD': 'Hide password',
29+
'VISIT_BRICKS': "Our ready to be pasted code snippets"
2930
},
3031
['SIDEBAR']: {
3132
'OVERVIEW': 'Overview',

0 commit comments

Comments
 (0)