feat(dashboard, ui): Product image modals (#6779)

**What**
- Adds Media modals gallery and edit mode
- Fixes an issue with Hint from medusajs/ui.
This commit is contained in:
Kasper Fabricius Kristensen
2024-03-25 11:22:30 +00:00
committed by GitHub
parent 1b2e0b4031
commit 247ca3c3fa
19 changed files with 1016 additions and 242 deletions
@@ -225,8 +225,8 @@ export const v1Routes: RouteObject[] = [
lazy: () => import("../../routes/products/product-options"),
},
{
path: "gallery",
lazy: () => import("../../routes/products/product-gallery"),
path: "media",
lazy: () => import("../../routes/products/product-media"),
},
],
},
@@ -1,10 +1,10 @@
import { createContext } from "react";
import { createContext } from "react"
export type Theme = "light" | "dark";
export type Theme = "light" | "dark"
type ThemeContextValue = {
theme: Theme;
setTheme: (theme: Theme) => void;
};
theme: Theme
setTheme: (theme: Theme) => void
}
export const ThemeContext = createContext<ThemeContextValue | null>(null);
export const ThemeContext = createContext<ThemeContextValue | null>(null)