Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
lllzhmio committed Nov 12, 2024
1 parent be956ff commit 79de544
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function SickExpression() {
})}
</div>
));
}, [sick_sents_arranged, sents, textCorrections_arranged]);
}, [sick_sents_arranged, textCorrections_arranged, sents, setSelectedSentence]);

// 使用 useEffect 来更新选中状态的样式
React.useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/Page/_components/Autofit/Autofit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function Autofit({ children, mode = scaleMode.MIN }: { children: ReactNode; mode

useEffect(() => {
resizePage();
}, [displayMode]);
}, [displayMode, resizePage]);

return (
<div className="Autofit" style={{ transform: `scale(${scale})` }} ref={ref}>
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useScrollToMark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ export function useScrollToMark(
});
}
});
}, [selectedSentence]);
}, [selectedSentence, selector, containerSelector]);
}
2 changes: 1 addition & 1 deletion src/hooks/useScrollToSelectedSentence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ export const useScrollToSelectedSentence = (scrollerRef: React.RefObject<HTMLEle
behavior: 'smooth'
});
}
}, [selectedSentence]);
}, [scrollerRef, selectedSentence]);
};
2 changes: 0 additions & 2 deletions src/store/essays.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ type ParagraphInterval = {

type Sent = ParagraphId & SentId & Label;
type SickSent = Sent & { revised_sent: string };
type GoodWord = ParagraphId & SentId & ParagraphInterval;
type SendRelation = ParagraphId & Label & ParagraphInterval;
type TextCorrection = ParagraphId &
SentId & {
label: ('A' | 'R' | 'D')[];
Expand Down

0 comments on commit 79de544

Please sign in to comment.