From d19612689b22af83b2cc63b85b30d60b2fcbe7e1 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 29 Apr 2020 22:05:00 +0300 Subject: Drop unused code --- vnext/src/ui/NavigationIcon.css | 4 ---- vnext/src/ui/NavigationIcon.js | 25 ------------------------- vnext/src/ui/Thread.js | 2 +- 3 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 vnext/src/ui/NavigationIcon.css delete mode 100644 vnext/src/ui/NavigationIcon.js (limited to 'vnext/src/ui') diff --git a/vnext/src/ui/NavigationIcon.css b/vnext/src/ui/NavigationIcon.css deleted file mode 100644 index 9cbff965..00000000 --- a/vnext/src/ui/NavigationIcon.css +++ /dev/null @@ -1,4 +0,0 @@ -#navicon { - padding: 12px; - color: var(--dimmed-link-color); -} diff --git a/vnext/src/ui/NavigationIcon.js b/vnext/src/ui/NavigationIcon.js deleted file mode 100644 index 41b95398..00000000 --- a/vnext/src/ui/NavigationIcon.js +++ /dev/null @@ -1,25 +0,0 @@ -import React from 'react'; - -import Icon from './Icon'; - -import './NavigationIcon.css'; - -/** - * @typedef {Object} NavigationIconProps - * @property {(event: React.MouseEvent) => void} onToggle - */ - - /** - * Navigation icon - * @param {NavigationIconProps} props - */ -function NavigationIcon(props) { - return ( - - ); -} - -export default React.memo(NavigationIcon); - diff --git a/vnext/src/ui/Thread.js b/vnext/src/ui/Thread.js index 9d22200c..f5cab72f 100644 --- a/vnext/src/ui/Thread.js +++ b/vnext/src/ui/Thread.js @@ -118,7 +118,7 @@ function Comment({ msg, draft, visitor, active, setActive, onStartEditing, postC /** * @param {{ visitor: import('../api').SecureUser - connection?: EventSource + connection: EventSource? }} props */ export default function Thread(props) { -- cgit v1.2.3