fix: remove semicolons to match prettier config (semi: false)
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
import React from "react";
|
||||
import { Drawer, Switch } from "antd";
|
||||
import type { StickerConfig } from "../../types";
|
||||
import React from "react"
|
||||
import { Drawer, Switch } from "antd"
|
||||
import type { StickerConfig } from "../../types"
|
||||
|
||||
import { useStickerPanel } from "./hooks/useStickerPanel";
|
||||
import { StickerTabs } from "./components/StickerTabs";
|
||||
import { StickerList } from "./components/StickerList";
|
||||
import { StickerPropsEditor } from "./components/StickerPropsEditor";
|
||||
import { useStickerPanel } from "./hooks/useStickerPanel"
|
||||
import { StickerTabs } from "./components/StickerTabs"
|
||||
import { StickerList } from "./components/StickerList"
|
||||
import { StickerPropsEditor } from "./components/StickerPropsEditor"
|
||||
|
||||
export interface StickerPanelProps {
|
||||
open: boolean;
|
||||
onClose: () => void;
|
||||
config: StickerConfig;
|
||||
onChange: (config: StickerConfig) => void;
|
||||
totalDuration: number;
|
||||
open: boolean
|
||||
onClose: () => void
|
||||
config: StickerConfig
|
||||
onChange: (config: StickerConfig) => void
|
||||
totalDuration: number
|
||||
}
|
||||
|
||||
const StickerPanel: React.FC<StickerPanelProps> = ({
|
||||
@@ -33,20 +33,20 @@ const StickerPanel: React.FC<StickerPanelProps> = ({
|
||||
updateItem,
|
||||
addSticker,
|
||||
removeSticker,
|
||||
} = useStickerPanel({ config, onChange, totalDuration });
|
||||
} = useStickerPanel({ config, onChange, totalDuration })
|
||||
|
||||
const handleEmojiAdd = (emoji: string) => {
|
||||
addSticker("emoji", emoji);
|
||||
};
|
||||
addSticker("emoji", emoji)
|
||||
}
|
||||
|
||||
const handleImageAdd = (url: string) => {
|
||||
addSticker("image", url);
|
||||
};
|
||||
addSticker("image", url)
|
||||
}
|
||||
|
||||
const handleTextAdd = (text: string) => {
|
||||
addSticker("text", text);
|
||||
setTextInput("");
|
||||
};
|
||||
addSticker("text", text)
|
||||
setTextInput("")
|
||||
}
|
||||
|
||||
return (
|
||||
<Drawer
|
||||
@@ -95,8 +95,8 @@ const StickerPanel: React.FC<StickerPanelProps> = ({
|
||||
/>
|
||||
)}
|
||||
</Drawer>
|
||||
);
|
||||
};
|
||||
)
|
||||
}
|
||||
|
||||
export default StickerPanel;
|
||||
export type { StickerPanelProps };
|
||||
export default StickerPanel
|
||||
export type { StickerPanelProps }
|
||||
|
||||
Reference in New Issue
Block a user