Skip to content

Commit e991182

Browse files
style: remove redundant tab in page header (#7)
Co-authored-by: Andreas Kienle <[email protected]>
1 parent 3f96dac commit e991182

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/components/Projects/ProjectsList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { projectnameToNamespace } from '../../utils/index';
88
import '@ui5/webcomponents-icons/dist/copy';
99
import '@ui5/webcomponents-icons/dist/arrow-right';
1010
import { ListProjectNames } from '../../lib/api/types/crate/listProjectNames';
11+
import { t } from 'i18next';
1112

1213
export default function ProjectsList() {
1314
const navigate = useLuigiNavigate();
@@ -21,9 +22,10 @@ export default function ProjectsList() {
2122
return (
2223
<>
2324
<AnalyticalTable
25+
style={{ margin: '12px' }}
2426
columns={[
2527
{
26-
Header: 'Projects',
28+
Header: t('ProjectsListView.title'),
2729
accessor: 'projectName',
2830
Cell: (instance: any) => (
2931
<div

src/views/ProjectList.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import {
2-
ObjectPage,
3-
ObjectPageSection,
4-
ObjectPageTitle,
5-
} from '@ui5/webcomponents-react';
1+
import { ObjectPage, ObjectPageTitle } from '@ui5/webcomponents-react';
62
import ProjectsList from '../components/Projects/ProjectsList.tsx';
73
import IntelligentBreadcrumbs from '../components/Core/IntelligentBreadcrumbs.tsx';
84
import { ProjectListToolbar } from '../components/Projects/ProjectListToolbar.tsx';
@@ -22,9 +18,7 @@ export default function ProjectsListView() {
2218
/>
2319
}
2420
>
25-
<ObjectPageSection id="projects" titleText={t('ProjectsListView.title')}>
26-
<ProjectsList />
27-
</ObjectPageSection>
21+
<ProjectsList />
2822
</ObjectPage>
2923
);
3024
}

0 commit comments

Comments
 (0)