feat: modernize dashboard widgets
This commit is contained in:
1 parent
1a5e083fd0
commit
6f2cd7fc2b
270 files changed
+10189
-3544
No files matched your search
@@ -15,9 +15,11 @@ export const { componentLoader, definition } = createWidgetDefinition("timetable
|
||||
validate: z.string().url(),
|
||||
}),
|
||||
station: factory.dynamicSelect({
|
||||
useOptions(query, _integrationIds, options) {
|
||||
useOptions(query, _integrationIds, options, itemId, boardId) {
|
||||
const { data: stations, isPending } = clientApi.widget.timetable.searchStations.useQuery({
|
||||
baseUrl: typeof options.baseUrl === "string" ? options.baseUrl : "https://search.ch",
|
||||
itemId,
|
||||
boardId,
|
||||
query,
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user