Unverified Commit 4edb274b authored by Robert Knight's avatar Robert Knight Committed by GitHub

Merge pull request #2082 from hypothesis/remove-unused-ng-wrappers

Remove unused Preact component wrappers
parents 6da55201 6d73eef3
...@@ -118,20 +118,16 @@ registerIcons(iconSet); ...@@ -118,20 +118,16 @@ registerIcons(iconSet);
// Preact UI components that are wrapped for use within Angular templates. // Preact UI components that are wrapped for use within Angular templates.
import Annotation from './components/annotation';
import AnnotationViewerContent from './components/annotation-viewer-content'; import AnnotationViewerContent from './components/annotation-viewer-content';
import FocusedModeHeader from './components/focused-mode-header'; import FocusedModeHeader from './components/focused-mode-header';
import HelpPanel from './components/help-panel'; import HelpPanel from './components/help-panel';
import LoggedOutMessage from './components/logged-out-message'; import LoggedOutMessage from './components/logged-out-message';
import LoginPromptPanel from './components/login-prompt-panel'; import LoginPromptPanel from './components/login-prompt-panel';
import ModerationBanner from './components/moderation-banner';
import SearchStatusBar from './components/search-status-bar'; import SearchStatusBar from './components/search-status-bar';
import SelectionTabs from './components/selection-tabs'; import SelectionTabs from './components/selection-tabs';
import ShareAnnotationsPanel from './components/share-annotations-panel'; import ShareAnnotationsPanel from './components/share-annotations-panel';
import SidebarContentError from './components/sidebar-content-error'; import SidebarContentError from './components/sidebar-content-error';
import StreamContent from './components/stream-content'; import StreamContent from './components/stream-content';
import SvgIcon from '../shared/components/svg-icon';
import Thread from './components/thread';
import ThreadList from './components/thread-list'; import ThreadList from './components/thread-list';
import ToastMessages from './components/toast-messages'; import ToastMessages from './components/toast-messages';
import TopBar from './components/top-bar'; import TopBar from './components/top-bar';
...@@ -256,7 +252,6 @@ function startAngularApp(config) { ...@@ -256,7 +252,6 @@ function startAngularApp(config) {
.component('hypothesisApp', hypothesisApp) .component('hypothesisApp', hypothesisApp)
// UI components // UI components
.component('annotation', wrapComponent(Annotation))
.component( .component(
'annotationViewerContent', 'annotationViewerContent',
wrapComponent(AnnotationViewerContent) wrapComponent(AnnotationViewerContent)
...@@ -264,7 +259,6 @@ function startAngularApp(config) { ...@@ -264,7 +259,6 @@ function startAngularApp(config) {
.component('helpPanel', wrapComponent(HelpPanel)) .component('helpPanel', wrapComponent(HelpPanel))
.component('loginPromptPanel', wrapComponent(LoginPromptPanel)) .component('loginPromptPanel', wrapComponent(LoginPromptPanel))
.component('loggedOutMessage', wrapComponent(LoggedOutMessage)) .component('loggedOutMessage', wrapComponent(LoggedOutMessage))
.component('moderationBanner', wrapComponent(ModerationBanner))
.component('searchStatusBar', wrapComponent(SearchStatusBar)) .component('searchStatusBar', wrapComponent(SearchStatusBar))
.component('focusedModeHeader', wrapComponent(FocusedModeHeader)) .component('focusedModeHeader', wrapComponent(FocusedModeHeader))
.component('selectionTabs', wrapComponent(SelectionTabs)) .component('selectionTabs', wrapComponent(SelectionTabs))
...@@ -272,8 +266,6 @@ function startAngularApp(config) { ...@@ -272,8 +266,6 @@ function startAngularApp(config) {
.component('sidebarContentError', wrapComponent(SidebarContentError)) .component('sidebarContentError', wrapComponent(SidebarContentError))
.component('shareAnnotationsPanel', wrapComponent(ShareAnnotationsPanel)) .component('shareAnnotationsPanel', wrapComponent(ShareAnnotationsPanel))
.component('streamContent', wrapComponent(StreamContent)) .component('streamContent', wrapComponent(StreamContent))
.component('svgIcon', wrapComponent(SvgIcon))
.component('thread', wrapComponent(Thread))
.component('threadList', wrapComponent(ThreadList)) .component('threadList', wrapComponent(ThreadList))
.component('toastMessages', wrapComponent(ToastMessages)) .component('toastMessages', wrapComponent(ToastMessages))
.component('topBar', wrapComponent(TopBar)) .component('topBar', wrapComponent(TopBar))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment