Skip to content

Commit

Permalink
refactor: Remove unused properties in PortalRequest and AppCategory t…
Browse files Browse the repository at this point in the history
…ypes
  • Loading branch information
Noggling committed Oct 24, 2024
1 parent 30e5ad3 commit 06acd49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions client/packages/core/src/modules/portal-config/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ export type PortalRequest = {
subtext?: string;
contexts?: ContextType[];
apps?: string[];
// todo remove routes and extensions
routes?: PortalRouter;
extensions?: Extensions;
configuration: {
environment: string | null;
extension: string | null;
Expand Down Expand Up @@ -56,7 +53,6 @@ export type PortalRouteWithChildren = PortalRoute & {

export type AppCategory = {
id?: string;
// name: string | null;
displayName: string | null;
color: string | null;
defaultIcon: string | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AppManifest, AppCategory } from '@portal/core';
import { getColumnCount } from './utils';
const appGroups: AppCategory[] = [
{
name: 'Group 1',
displayName: 'Group 1',
apps: [
{ appKey: 'Test1' } as AppManifest,
{ appKey: 'Test2' } as AppManifest,
Expand All @@ -16,7 +16,7 @@ const appGroups: AppCategory[] = [
],
} as AppCategory,
{
name: 'Group 2',
displayName: 'Group 2',
apps: [
{ appKey: 'Test9' } as AppManifest,
{ appKey: 'Test10' } as AppManifest,
Expand All @@ -29,7 +29,7 @@ const appGroups: AppCategory[] = [
],
} as AppCategory,
{
name: 'Group 3',
displayName: 'Group 3',
apps: [
{ appKey: 'Test17' } as AppManifest,
{ appKey: 'Test18' } as AppManifest,
Expand All @@ -39,7 +39,7 @@ const appGroups: AppCategory[] = [
];
const singleAppGroup: AppCategory[] = [
{
name: 'Group 1',
displayName: 'Group 1',
apps: [{ appKey: 'testSingleApp' } as AppManifest],
} as AppCategory,
];
Expand Down

0 comments on commit 06acd49

Please sign in to comment.