-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(images) allow bulk select/delete images in a project #618
Signed-off-by: David Edler <[email protected]>
- Loading branch information
Showing
13 changed files
with
404 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React, { FC, ReactNode } from "react"; | ||
|
||
type Props = { | ||
title: ReactNode; | ||
baseActions?: ReactNode; | ||
bulkActions: ReactNode; | ||
searchAndFilter: ReactNode; | ||
selectedCount: number; | ||
}; | ||
|
||
const SelectableHeader: FC<Props> = ({ | ||
title, | ||
selectedCount, | ||
baseActions, | ||
bulkActions, | ||
searchAndFilter, | ||
}) => { | ||
return ( | ||
<div className="p-panel__header selectable-header"> | ||
<div className="selectable-header__left"> | ||
<h1 className="p-heading--4 u-no-margin--bottom">{title}</h1> | ||
{selectedCount > 0 && bulkActions} | ||
{selectedCount === 0 && ( | ||
<div className="selectable-header__search margin-right u-no-margin--bottom"> | ||
{searchAndFilter} | ||
</div> | ||
)} | ||
</div> | ||
{selectedCount === 0 && baseActions && ( | ||
<div className="selectable-header__base-actions">{baseActions}</div> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default SelectableHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.