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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user