Skip to content

Commit

Permalink
fix: 声明类型
Browse files Browse the repository at this point in the history
  • Loading branch information
besscroft committed Apr 21, 2024
1 parent 40c06e4 commit 6350341
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/admin/list/ImageEditSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function ImageEditSheet(props : Readonly<ImageServerHandleProps &
<Sheet
defaultOpen={false}
open={imageEdit}
onOpenChange={(open) => {
onOpenChange={(open: boolean) => {
if (!open) {
setImageEdit(false)
setImageEditData({} as ImageType)
Expand Down
2 changes: 1 addition & 1 deletion components/admin/list/ImageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function ImageView() {
<Sheet
defaultOpen={false}
open={imageView}
onOpenChange={(open) => {
onOpenChange={(open: boolean) => {
if (!open) {
setImageView(false)
setImageViewData({} as ImageType)
Expand Down
2 changes: 1 addition & 1 deletion components/admin/tag/TagEditSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function TagEditSheet(props : Readonly<HandleProps>) {
<Sheet
defaultOpen={false}
open={tagEdit}
onOpenChange={(open) => {
onOpenChange={(open: boolean) => {
if (!open) {
setTagEdit(false)
setTagEditData({} as TagType)
Expand Down

0 comments on commit 6350341

Please sign in to comment.