mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
Add an edit page
This commit is contained in:
1 parent
ef8ccf149f
commit
b8002fdf2e
2 files changed
+8
-2
No files matched your search
@@ -6,6 +6,7 @@ import {
|
||||
faFilm,
|
||||
faPaintbrush,
|
||||
faImage,
|
||||
faPenNib,
|
||||
// faGem,
|
||||
} from "@fortawesome/pro-solid-svg-icons";
|
||||
import { Button } from "@storyteller/ui-button";
|
||||
@@ -71,6 +72,11 @@ const appMenuTabs: MenuIconItem[] = [
|
||||
label: "Image to Video",
|
||||
icon: <FontAwesomeIcon icon={faFilm} />,
|
||||
},
|
||||
{
|
||||
id: "EDIT",
|
||||
label: "Edit Image",
|
||||
icon: <FontAwesomeIcon icon={faPenNib} />,
|
||||
}
|
||||
];
|
||||
|
||||
export const topNavMediaId = signal<string>("");
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { create } from 'zustand';
|
||||
import { useSceneStore } from '../PageDraw/stores/SceneState';
|
||||
|
||||
export type TabId = '2D' | '3D' | 'VIDEO' | 'IMAGE';
|
||||
export type TabId = '2D' | '3D' | 'VIDEO' | 'IMAGE' | 'EDIT';
|
||||
|
||||
interface TabState {
|
||||
// Current active tab
|
||||
@@ -23,7 +23,7 @@ export const useTabStore = create<TabState>((set, get) => ({
|
||||
|
||||
setActiveTab: async (newTabId) => {
|
||||
const currentTabId = get().activeTabId;
|
||||
|
||||
|
||||
// Don't do anything if we're already on this tab
|
||||
if (currentTabId === newTabId) return true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user