Skip to content

Commit c50a65d

Browse files
committed
feat: feedback dialog
1 parent 131c3ec commit c50a65d

File tree

1 file changed

+36
-17
lines changed

1 file changed

+36
-17
lines changed

frontend/src/routes/_context.tsx

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -109,24 +109,43 @@ function Modals() {
109109
const params = useParams({ strict: false });
110110

111111
const CreateActorDialog = useDialog.CreateActor.Dialog;
112+
const FeedbackDialog = useDialog.Feedback.Dialog;
112113

113114
return (
114-
<CreateActorDialog
115-
namespace={params.namespace || ""}
116-
dialogProps={{
117-
open: search.modal === "create-actor",
118-
onOpenChange: (value) => {
119-
if (!value) {
120-
navigate({
121-
to: ".",
122-
search: (old) => ({
123-
...old,
124-
modal: undefined,
125-
}),
126-
});
127-
}
128-
},
129-
}}
130-
/>
115+
<>
116+
<CreateActorDialog
117+
namespace={params.namespace || ""}
118+
dialogProps={{
119+
open: search.modal === "create-actor",
120+
onOpenChange: (value) => {
121+
if (!value) {
122+
navigate({
123+
to: ".",
124+
search: (old) => ({
125+
...old,
126+
modal: undefined,
127+
}),
128+
});
129+
}
130+
},
131+
}}
132+
/>
133+
<FeedbackDialog
134+
dialogProps={{
135+
open: search.modal === "feedback",
136+
onOpenChange: (value) => {
137+
if (!value) {
138+
navigate({
139+
to: ".",
140+
search: (old) => ({
141+
...old,
142+
modal: undefined,
143+
}),
144+
});
145+
}
146+
},
147+
}}
148+
/>
149+
</>
131150
);
132151
}

0 commit comments

Comments
 (0)