-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(admin_ui): add filter, loader and sorting to the tables (#643)
* chore: update apsara version * refactor: remove loading check from column definitions * refactor: remove loading check from roles and user table * refactor: remove loading check from billing list * refactor: remove loading check from groups list * refactor: remove loading check from projects list * refactor: remove loading check from users list * refactor: remove loading check from products list * refactor: remove loading check from preferences list * refactor: remove loading check and add filter in invoices list
- Loading branch information
Showing
24 changed files
with
289 additions
and
413 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,15 @@ | ||
import { DataTable, useTable } from "@raystack/apsara"; | ||
import PageHeader from "~/components/page-header"; | ||
|
||
export const InvoicesHeader = ({ header }: any) => { | ||
const { filteredColumns } = useTable(); | ||
const isFiltered = filteredColumns.length > 0; | ||
|
||
return ( | ||
<PageHeader title={header.title} breadcrumb={header?.breadcrumb || []}> | ||
{isFiltered ? <DataTable.ClearFilter /> : <DataTable.FilterOptions />} | ||
<DataTable.ViewOptions /> | ||
<DataTable.GloabalSearch placeholder="Search invoices..." /> | ||
</PageHeader> | ||
); | ||
}; |
Oops, something went wrong.