Skip to content

Commit 5b95f0d

Browse files
committed
Vincent-Hackathon: Frontend: CreateButton: Add tutorial tooltip for create button
1 parent 636b33c commit 5b95f0d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/src/components/common/Resource/CreateButton.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { useTranslation } from 'react-i18next';
2626
import { useSelectedClusters } from '../../../lib/k8s';
2727
import { Activity } from '../../activity/Activity';
2828
import ActionButton from '../ActionButton';
29+
import { TutorialToolTip } from '../Tutorial/TutorialToolTip';
2930
import EditorDialog from './EditorDialog';
3031

3132
interface CreateButtonProps {
@@ -53,6 +54,8 @@ export default function CreateButton(props: CreateButtonProps) {
5354
}
5455
}, [clusters]);
5556

57+
const buttonText = <TutorialToolTip context="CreateButton" labelText={t('translation|Create')} />;
58+
5659
const openActivity = () => {
5760
const id = 'create-button';
5861
Activity.launch({
@@ -128,7 +131,7 @@ export default function CreateButton(props: CreateButtonProps) {
128131
},
129132
})}
130133
>
131-
{t('translation|Create')}
134+
{buttonText}
132135
</Button>
133136
)}
134137
</React.Fragment>

0 commit comments

Comments
 (0)