Skip to content

Commit

Permalink
refactor: use upsertApp function of shell
Browse files Browse the repository at this point in the history
Refs: CO-1682
  • Loading branch information
rodleyorosa committed Nov 28, 2024
1 parent 114ad32 commit 0e05ce6
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 17 deletions.
131 changes: 117 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"@types/webpack": "^5.28.2",
"@types/webpack-env": "^1.18.1",
"@zextras/carbonio-design-system": "^8.1.0",
"@zextras/carbonio-shell-ui": "9.0.0",
"@zextras/carbonio-shell-ui": "devel",
"@zextras/carbonio-ui-preview": "^3.1.0",
"core-js": "^3.36.1",
"date-arithmetic": "^4.1.0",
Expand Down
8 changes: 7 additions & 1 deletion src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import {
registerFunctions,
SearchViewProps,
SecondaryBarComponentProps,
NewAction
NewAction,
upsertApp
} from '@zextras/carbonio-shell-ui';
import { AnyFunction } from '@zextras/carbonio-shell-ui/lib/utils/typeUtils';
import { map } from 'lodash';
Expand Down Expand Up @@ -143,6 +144,11 @@ const AppRegistrations = (): null => {
id: CALENDAR_BOARD_ID,
component: EditorView
});

upsertApp({
name: CALENDAR_APP_ID,
display: appLabel
});
}, [t]);

const newAction = useMemo(
Expand Down
2 changes: 1 addition & 1 deletion src/carbonio-ui-commons

0 comments on commit 0e05ce6

Please sign in to comment.