diff --git a/.github/workflows/reset-database.yml b/.github/workflows/reset-database.yml index 6c086fba..e4b4074f 100644 --- a/.github/workflows/reset-database.yml +++ b/.github/workflows/reset-database.yml @@ -13,4 +13,7 @@ jobs: - name: Install dependencies run: yarn install - name: Reset database + env: + POSTGRES_URL_NON_POOLING: ${{ env.POSTGRES_URL_NON_POOLING }} + POSTGRES_URL: ${{ env.POSTGRES_URL }} run: yarn reset-database \ No newline at end of file diff --git a/apps/example/options.tsx b/apps/example/options.tsx index 1b459cfa..7797fa3a 100644 --- a/apps/example/options.tsx +++ b/apps/example/options.tsx @@ -228,6 +228,10 @@ export const options: NextAdminOptions = { label: "Documentation", url: "https://next-admin.js.org", }, + { + label: "Page Router", + url: "/pagerouter/admin", + }, ], defaultColorScheme: "dark", }; diff --git a/apps/example/pageRouterOptions.tsx b/apps/example/pageRouterOptions.tsx index 54699343..cf988246 100644 --- a/apps/example/pageRouterOptions.tsx +++ b/apps/example/pageRouterOptions.tsx @@ -3,7 +3,7 @@ import DatePicker from "./components/DatePicker"; export const options: NextAdminOptions = { basePath: "/pagerouter/admin", - title: "⚡️ My Admin", + title: "⚡️ My Admin Page Router", model: { User: { toString: (user) => `${user.name} (${user.email})`, @@ -22,7 +22,6 @@ export const options: NextAdminOptions = { }, }, }, - ], fields: { role: { @@ -157,6 +156,12 @@ export const options: NextAdminOptions = { icon: "AdjustmentsHorizontalIcon", }, }, + externalLinks: [ + { + label: "App Router", + url: "/ ", + }, + ], sidebar: { groups: [ { diff --git a/packages/next-admin/src/components/inputs/MultiSelect/MultiSelectWidget.tsx b/packages/next-admin/src/components/inputs/MultiSelect/MultiSelectWidget.tsx index df80651c..18984a4a 100644 --- a/packages/next-admin/src/components/inputs/MultiSelect/MultiSelectWidget.tsx +++ b/packages/next-admin/src/components/inputs/MultiSelect/MultiSelectWidget.tsx @@ -75,7 +75,7 @@ const MultiSelectWidget = (props: Props) => { ); return ( -