Add tooltip for bell icon

I bypassed the lint checker so that it'll be easier to merge this change to `odysee` branch.
This commit is contained in:
infiinte-persistence 2021-02-18 10:43:26 +08:00 committed by Sean Yesmunt
parent 9e9183aa95
commit 530bd14f4a
2 changed files with 4 additions and 0 deletions

View file

@ -1222,6 +1222,7 @@
"Choose image": "Choose image", "Choose image": "Choose image",
"%image_type% %recommended_ratio%": "%image_type% %recommended_ratio%", "%image_type% %recommended_ratio%": "%image_type% %recommended_ratio%",
"%label% • File to upload": "%label% • File to upload", "%label% • File to upload": "%label% • File to upload",
"Video file": "Video file",
"Select video file to upload": "Select video file to upload", "Select video file to upload": "Select video file to upload",
"Uploading...": "Uploading...", "Uploading...": "Uploading...",
"Use a URL": "Use a URL", "Use a URL": "Use a URL",
@ -1508,6 +1509,8 @@
"Learn more about LBRY Credits on %DOMAIN%": "Learn more about LBRY Credits on %DOMAIN%", "Learn more about LBRY Credits on %DOMAIN%": "Learn more about LBRY Credits on %DOMAIN%",
"Results boosted by %lbc%": "Results boosted by %lbc%", "Results boosted by %lbc%": "Results boosted by %lbc%",
"This will be visible in a few minutes.": "This will be visible in a few minutes.", "This will be visible in a few minutes.": "This will be visible in a few minutes.",
"Turn on notifications": "Turn on notifications",
"Turn off notifications": "Turn off notifications",
"Notifications turned off for %channel%.": "Notifications turned off for %channel%.", "Notifications turned off for %channel%.": "Notifications turned off for %channel%.",
"Notifications turned on for %channel%.": "Notifications turned on for %channel%.", "Notifications turned on for %channel%.": "Notifications turned on for %channel%.",
"Notifications turned on for %channel%!": "Notifications turned on for %channel%!", "Notifications turned on for %channel%!": "Notifications turned on for %channel%!",

View file

@ -84,6 +84,7 @@ export default function SubscribeButton(props: Props) {
<Button <Button
button="alt" button="alt"
icon={notificationsDisabled ? ICONS.BELL : ICONS.BELL_ON} icon={notificationsDisabled ? ICONS.BELL : ICONS.BELL_ON}
aria-label={notificationsDisabled ? __('Turn on notifications') : __('Turn off notifications')}
onClick={() => { onClick={() => {
const newNotificationsDisabled = !notificationsDisabled; const newNotificationsDisabled = !notificationsDisabled;