Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions src/features/collections/CollectionDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { snakeCaseToHumanReadable } from '../../common/utils/stringUtils';
import { MATCHER_LABELS, MatchModal } from './MatchModal';
import { SelectionModal } from './SelectionModal';
import { ExportModal } from './ExportModal';
import { Button } from '../../common/components';
import { Button, Input } from '../../common/components';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
faArrowRightArrowLeft,
Expand Down Expand Up @@ -127,31 +127,31 @@ export const CollectionDetail = () => {
{!showOverview && (
<>
<div className={styles['collection_toolbar']}>
<Button
ref={filterMenuRef}
icon={<FontAwesomeIcon icon={faFilter} />}
onClick={handleToggleFilters}
>
Filters
</Button>
{/* <FilterMenu
collectionId={collection.id}
anchorEl={filterMenuRef.current}
open={filterOpen}
onClose={() => setFiltersOpen(false)}
/> */}
<Button
icon={<FontAwesomeIcon icon={faArrowRightArrowLeft} />}
variant="contained"
onClick={() => {
setModalView('match');
modal?.show();
}}
>
{match
? `Matching by ${MATCHER_LABELS.get(match.matcher_id)}`
: `Match my Data`}
</Button>
<Stack direction="row" spacing={1}>
<Input
className={styles['search-box']}
placeholder="Search genomes by classification"
/>
<Button
ref={filterMenuRef}
icon={<FontAwesomeIcon icon={faFilter} />}
onClick={handleToggleFilters}
>
Filters
</Button>
<Button
icon={<FontAwesomeIcon icon={faArrowRightArrowLeft} />}
variant="contained"
onClick={() => {
setModalView('match');
modal?.show();
}}
>
{match
? `Matching by ${MATCHER_LABELS.get(match.matcher_id)}`
: `Match my Data`}
</Button>
</Stack>
<Button
icon={<FontAwesomeIcon icon={faCircleCheck} />}
variant={selection.length > 0 ? 'contained' : 'outlined'}
Expand Down
4 changes: 4 additions & 0 deletions src/features/collections/Collections.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ $border: 1px solid use-color("base-lighter");
justify-content: space-between;
}

.search-box {
width: 400px;
}

.detail_content {
background-color: use-color("base-lightest");
display: flex;
Expand Down