Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhongz committed Aug 8, 2024
1 parent b13a935 commit 07bfb16
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions packages-experimental/uni-slides-ui/src/views/UniSlideSideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function UniSlideSideBar() {
return () => {
subscriber?.unsubscribe();
};
// eslint-disable-next-line react-hooks/exhaustive-deps
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

useEffect(() => {
Expand Down Expand Up @@ -103,21 +103,21 @@ export function UniSlideSideBar() {

return (
<div className={styles.uniSlideBar} ref={slideBarRef}>
<div className={styles.uniSlideBarContent} style={{ height: `${barHeight}px` }}>
{slideList.map((item, index) => (
<div
key={item.id}
className={clsx(styles.uniSlideBarItem, {
[styles.uniSlideBarItemActive]: item.id === activatePageId,
})}
onClick={() => activatePage(item.id)}
>
<span>{index + 1}</span>
<div ref={divRefs[index]} className={styles.uniSlideBarBox} />
</div>
))}
</div>
<button className={styles.newSlideButton} onClick={handleAppendSlide}>
<div className={styles.uniSlideBarContent} style={{ height: `${barHeight}px` }}>
{slideList.map((item, index) => (
<div
key={item.id}
className={clsx(styles.uniSlideBarItem, {
[styles.uniSlideBarItemActive]: item.id === activatePageId,
})}
onClick={() => activatePage(item.id)}
>
<span>{index + 1}</span>
<div ref={divRefs[index]} className={styles.uniSlideBarBox} />
</div>
))}
</div>
<button className={styles.newSlideButton} onClick={handleAppendSlide}>
<IncreaseSingle className={styles.newSlideButtonIcon} />
<span>{localeService.t('slide.append')}</span>
</button>
Expand Down

0 comments on commit 07bfb16

Please sign in to comment.