mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
fixes route props for tooljet database
This commit is contained in:
parent
a8c8280896
commit
b72ba431fb
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ import useBreadcrumbs from 'use-react-router-breadcrumbs';
|
|||
|
||||
export const Breadcrumbs = () => {
|
||||
const breadcrumbs = useBreadcrumbs(routes, { excludePaths: ['/'] });
|
||||
|
||||
return (
|
||||
<ol className="breadcrumb breadcrumb-arrows">
|
||||
{breadcrumbs.length === 0 && (
|
||||
|
|
@ -26,7 +27,7 @@ export const Breadcrumbs = () => {
|
|||
// define some custom breadcrumbs for certain routes (optional)
|
||||
const routes = [
|
||||
{ path: '/:worspace_id', breadcrumb: 'Apps' },
|
||||
{ path: '/database', breadcrumb: 'Tables', props: { dataCy: 'tables-page-header' } },
|
||||
{ path: '/:worspace_id/database', breadcrumb: 'Tables', props: { dataCy: 'tables-page-header' } },
|
||||
{ path: '/workspace-settings', breadcrumb: 'Workspace settings' },
|
||||
{ path: '/global-datasources', breadcrumb: 'Global Datasources' },
|
||||
{ path: '/integrations', breadcrumb: 'Integrations / plugins', props: { beta: true } },
|
||||
|
|
|
|||
Loading…
Reference in a new issue