Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3401812
D4066.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D4066.diff
View Options
diff --git a/web/modals/chat/sidebar-list-modal.react.js b/web/modals/chat/sidebar-list-modal.react.js
--- a/web/modals/chat/sidebar-list-modal.react.js
+++ b/web/modals/chat/sidebar-list-modal.react.js
@@ -1,12 +1,10 @@
// @flow
-import classNames from 'classnames';
import * as React from 'react';
import { useSearchSidebars } from 'lib/hooks/search-sidebars';
import type { ThreadInfo } from 'lib/types/thread-types';
-import chatThreadListCSS from '../../chat/chat-thread-list.css';
import SidebarItem from '../../chat/sidebar-item.react';
import { useModalContext } from '../modal-provider.react';
import SearchModal from '../search-modal.react';
@@ -26,18 +24,15 @@
const { popModal } = useModalContext();
const { listData } = useSearchSidebars(threadInfo, searchText);
- return listData.map(item => (
- <div
- className={classNames(
- chatThreadListCSS.thread,
- chatThreadListCSS.sidebar,
- )}
- key={item.threadInfo.id}
- onClick={popModal}
- >
- <SidebarItem sidebarInfo={item} />
- </div>
- ));
+ return (
+ <ul>
+ {listData.map(item => (
+ <li key={item.threadInfo.id} onClick={popModal}>
+ <SidebarItem sidebarInfo={item} />
+ </li>
+ ))}
+ </ul>
+ );
}
function SidebarListModal(props: Props): React.Node {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 3, 2:01 PM (5 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2611922
Default Alt Text
D4066.diff (1 KB)
Attached To
Mode
D4066: [web] [refactor] [ENG-536] remove old sidebar styling from side bar modal
Attached
Detach File
Event Timeline
Log In to Comment