-
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
23 changed files
with
470 additions
and
309 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,29 @@ | ||
import React, { FC, ReactNode } from "react"; | ||
|
||
type Props = { | ||
title: ReactNode; | ||
baseActions?: ReactNode; | ||
bulkActions?: ReactNode; | ||
search?: ReactNode; | ||
}; | ||
|
||
const PageHeader: FC<Props> = ({ title, baseActions, bulkActions, search }) => { | ||
return ( | ||
<div className="p-panel__header page-header"> | ||
<div className="page-header__left"> | ||
<h1 className="p-heading--4 u-no-margin--bottom">{title}</h1> | ||
{bulkActions} | ||
{search && ( | ||
<div className="page-header__search margin-right u-no-margin--bottom"> | ||
{search} | ||
</div> | ||
)} | ||
</div> | ||
{baseActions && ( | ||
<div className="page-header__base-actions">{baseActions}</div> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default PageHeader; |
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.