Page MenuHomePhabricator

D4066.diff
No OneTemporary

D4066.diff

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

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)

Event Timeline