Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32180995
D10361.1765076057.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D10361.1765076057.diff
View Options
diff --git a/web/navigation-sidebar/navigation-sidebar-home-button.css b/web/navigation-sidebar/navigation-sidebar-home-button.css
new file mode 100644
--- /dev/null
+++ b/web/navigation-sidebar/navigation-sidebar-home-button.css
@@ -0,0 +1,13 @@
+.container {
+ padding-top: 24px;
+ border-bottom: 1px solid var(--separator-background-primary-default);
+}
+
+.buttonContainer {
+ color: var(--button-label-primary-default);
+ margin-bottom: 16px;
+}
+
+.buttonContainer:hover {
+ cursor: pointer;
+}
diff --git a/web/navigation-sidebar/navigation-sidebar-home-button.react.js b/web/navigation-sidebar/navigation-sidebar-home-button.react.js
new file mode 100644
--- /dev/null
+++ b/web/navigation-sidebar/navigation-sidebar-home-button.react.js
@@ -0,0 +1,28 @@
+// @flow
+
+import * as React from 'react';
+
+import SWMansionIcon from 'lib/components/SWMansionIcon.react.js';
+
+import css from './navigation-sidebar-home-button.css';
+import { useNavigationSidebarTooltip } from '../utils/tooltip-action-utils.js';
+
+function NavigationSidebarHomeButton(): React.Node {
+ const { onMouseEnter, onMouseLeave } = useNavigationSidebarTooltip({
+ tooltipLabel: 'Home',
+ });
+
+ return (
+ <div className={css.container}>
+ <div
+ className={css.buttonContainer}
+ onMouseEnter={onMouseEnter}
+ onMouseLeave={onMouseLeave}
+ >
+ <SWMansionIcon icon="home-1" size={24} />
+ </div>
+ </div>
+ );
+}
+
+export default NavigationSidebarHomeButton;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 2:54 AM (2 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5842189
Default Alt Text
D10361.1765076057.diff (1 KB)
Attached To
Mode
D10361: [web] introduce navigation sidebar home button
Attached
Detach File
Event Timeline
Log In to Comment