aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-04-29 22:05:00 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commitd19612689b22af83b2cc63b85b30d60b2fcbe7e1 (patch)
tree556ba303ce46033d347733603a514414f9d9fa1f /vnext
parentcbfded47ecd9202118878d237ed99c5d47ea2708 (diff)
Drop unused code
Diffstat (limited to 'vnext')
-rw-r--r--vnext/src/ui/NavigationIcon.css4
-rw-r--r--vnext/src/ui/NavigationIcon.js25
-rw-r--r--vnext/src/ui/Thread.js2
3 files changed, 1 insertions, 30 deletions
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 (
- <div id="navicon" className="mobile" onClick={props.onToggle}>
- <Icon name="ei-navicon" size="s"/>
- </div>
- );
-}
-
-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) {