Skip to content

Commit 153c0a8

Browse files
refactor: uncomment the toolbar action menu
1 parent e692ea5 commit 153c0a8

1 file changed

Lines changed: 22 additions & 22 deletions

File tree

apps/demo/src/Views/Ui/components/PageDemo.tsx

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -69,28 +69,28 @@ export const PageDemo = () => {
6969
subtitle={<Tag label={t("page.subTitle.tag")} />}
7070
children={PageContent}
7171
breadcrumb={breadcrumb}
72-
// toolbarActionMenu={{
73-
// actions: [
74-
// {
75-
// iconLeft: <i className="pi pi-chevron-left"></i>,
76-
// variant: "textOnly",
77-
// label: t("page.breadcrumb.back"),
78-
// },
79-
// {
80-
// label: t("page.toolbar.button.label"),
81-
// severity: "secondary",
82-
// onClick: () => {
83-
// console.log("view action");
84-
// },
85-
// },
86-
// {
87-
// label: t("page.toolbar.edit"),
88-
// onClick: () => {
89-
// console.log("edit action");
90-
// },
91-
// },
92-
// ],
93-
// }}
72+
toolbarActionMenu={{
73+
actions: [
74+
{
75+
iconLeft: <i className="pi pi-chevron-left"></i>,
76+
variant: "textOnly",
77+
label: t("page.breadcrumb.back"),
78+
},
79+
{
80+
label: t("page.toolbar.button.label"),
81+
severity: "secondary",
82+
onClick: () => {
83+
console.log("view action");
84+
},
85+
},
86+
{
87+
label: t("page.toolbar.edit"),
88+
onClick: () => {
89+
console.log("edit action");
90+
},
91+
},
92+
],
93+
}}
9494
/>
9595
</>
9696
);

0 commit comments

Comments
 (0)