From 9920525d90704aae0b8744d250eda27075fc0edd Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Mon, 10 Apr 2023 20:23:58 +0800 Subject: [PATCH] Add some sort of "onboarding" for Shortcuts --- src/components/shortcuts-settings.jsx | 28 ++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/src/components/shortcuts-settings.jsx b/src/components/shortcuts-settings.jsx index 7489e445..f20d56e6 100644 --- a/src/components/shortcuts-settings.jsx +++ b/src/components/shortcuts-settings.jsx @@ -399,9 +399,31 @@ function ShortcutsSettings() { })} ) : ( -

- No shortcuts yet. Add one from the form below. -

+
+

No shortcuts yet. Add one from the form below.

+

+ Not sure what to add? +
+ Try adding{' '} + { + e.preventDefault(); + states.shortcuts = [ + { + type: 'following', + }, + { + type: 'notifications', + }, + ]; + }} + > + Home / Following and Notifications + {' '} + first. +

+
)}