Skip to content

Commit

Permalink
Fix css button add link to pagerouter and app router admin
Browse files Browse the repository at this point in the history
  • Loading branch information
cregourd committed Jul 1, 2024
1 parent 06ed22c commit eaa2a9f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/reset-database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions apps/example/options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ export const options: NextAdminOptions = {
label: "Documentation",
url: "https://next-admin.js.org",
},
{
label: "Page Router",
url: "/pagerouter/admin",
},
],
defaultColorScheme: "dark",
};
9 changes: 7 additions & 2 deletions apps/example/pageRouterOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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})`,
Expand All @@ -22,7 +22,6 @@ export const options: NextAdminOptions = {
},
},
},

],
fields: {
role: {
Expand Down Expand Up @@ -157,6 +156,12 @@ export const options: NextAdminOptions = {
icon: "AdjustmentsHorizontalIcon",
},
},
externalLinks: [
{
label: "App Router",
url: "/ ",
},
],
sidebar: {
groups: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const MultiSelectWidget = (props: Props) => {
);

return (
<div ref={containerRef}>
<div className="relative" ref={containerRef}>
{displayMode === "select" && (
<div
className={clsx(
Expand Down

0 comments on commit eaa2a9f

Please sign in to comment.