-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: added tooltip on icons #6
base: develop
Are you sure you want to change the base?
feature: added tooltip on icons #6
Conversation
91841d3
to
983bdc6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your PR looks good but it has a small problem: it was started from main
branch and not develop
. This is our fault and thankfully not imply in your pull request.
Besides that: the new implementation from Develop has the SettingsOption which should be followed. Fixing that it will be ready to merge.
BTW: thanks for the contribution <3
@@ -61,8 +61,17 @@ const buildBadge = (occupation) => { | |||
// SevenTV Stuff | |||
badgeContainer.setAttributeNode(document.createAttribute("data-v-9f956e7d")); | |||
|
|||
// Get the occupation object | |||
const occupationObject = occupations.find((o) => o.apiValue === occupation); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We changed branches and now the occupation
variable passed in the scope returns the SettingsOption
object:
export type SettingsOption = {
name: string;
slug: string;
translation_key: string;
};
const title = | ||
occupationObject.translationKey === "None" | ||
? "Twitch Better Profile" | ||
: t(`occupation${occupationObject.translationKey}`); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
const title = | |
occupationObject.translationKey === "None" | |
? "Twitch Better Profile" | |
: t(`occupation${occupationObject.translationKey}`); | |
const title = | |
occupation.slug.toLowerCase() === "none" | |
? "Twitch Better Profile" | |
: t(`occupation${occupation.translation_key}`); |
Added tooltip on chat icons: