mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Add some sort of "onboarding" for Shortcuts
This commit is contained in:
parent
c9c49d9a93
commit
9920525d90
1 changed files with 25 additions and 3 deletions
|
@ -399,9 +399,31 @@ function ShortcutsSettings() {
|
||||||
})}
|
})}
|
||||||
</ol>
|
</ol>
|
||||||
) : (
|
) : (
|
||||||
<p class="ui-state insignificant">
|
<div class="ui-state insignificant">
|
||||||
No shortcuts yet. Add one from the form below.
|
<p>No shortcuts yet. Add one from the form below.</p>
|
||||||
</p>
|
<p>
|
||||||
|
Not sure what to add?
|
||||||
|
<br />
|
||||||
|
Try adding{' '}
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
onClick={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
states.shortcuts = [
|
||||||
|
{
|
||||||
|
type: 'following',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'notifications',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Home / Following and Notifications
|
||||||
|
</a>{' '}
|
||||||
|
first.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
<p
|
<p
|
||||||
style={{
|
style={{
|
||||||
|
|
Loading…
Reference in a new issue