mirror of
https://github.com/jnsahaj/tweakcn.git
synced 2026-09-24 23:31:41 +08:00
fix: build error
This commit is contained in:
@@ -21,8 +21,7 @@ const CustomTextarea = dynamic(() => import("@/components/editor/custom-textarea
|
||||
});
|
||||
|
||||
export function AIChatForm() {
|
||||
const { prompt, jsonPrompt, setPrompt, setJsonPrompt, resetPrompts } =
|
||||
useAIThemeGenerationPrompts();
|
||||
const { prompt, jsonPrompt, setPrompt, setJsonPrompt } = useAIThemeGenerationPrompts();
|
||||
const {
|
||||
generateTheme,
|
||||
loading: aiGenerateLoading,
|
||||
@@ -34,9 +33,6 @@ export function AIChatForm() {
|
||||
|
||||
const { setIsPreviewPanelOpen } = usePreviewPanel();
|
||||
const handleSuccessfulThemeGeneration = () => {
|
||||
// I tried to save the theme checkpoint here, but then the reset button locks on the
|
||||
// theme generated by the AI, and can't go back to the original preset theme.
|
||||
// saveThemeCheckpoint();
|
||||
setIsPreviewPanelOpen(true);
|
||||
// TODO: reset prompts
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user