Fixed linting issues
This commit is contained in:
@@ -13,7 +13,9 @@ export default function Container({ items }: ContainerProps) {
|
||||
key={sidenote.id}
|
||||
id={sidenote.id}
|
||||
className={styles.wrapper}
|
||||
style={{ positionAnchor: `--note-${sidenote.id}` }}
|
||||
style={
|
||||
{ positionAnchor: `--note-${sidenote.id}` } as React.CSSProperties
|
||||
}
|
||||
>
|
||||
<div className={`${styles.note} ${styles[sidenote.type]}`}>
|
||||
<span className={styles.marker}>
|
||||
|
||||
@@ -8,7 +8,7 @@ export default function SidenoteItem({ id, marker, content, type }: Sidenote) {
|
||||
href={`#${id}`}
|
||||
className={styles.ref}
|
||||
id={`#ref-${id}`}
|
||||
style={{ anchorName: `--note-${id}` }}
|
||||
style={{ anchorName: `--note-${id}` } as React.CSSProperties}
|
||||
>
|
||||
[{marker}]
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user