Skip to content

Commit

Permalink
chore: auto fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanHjelsethStorstad committed Jan 11, 2024
1 parent a9a9a70 commit 14b91d1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/app/components/Image/link/ImageLinkEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ export default function ImageLinkEditor({ imageLink }: PropTypes) {
const editingContext = useContext(EditModeContext)
const [currentCollectionId, setCurrentCollectionId] = useState<number>(imageLink.image.collectionId)

const isColectionActive = (collection: { id: number }) => {
return collection.id === currentCollectionId ? styles.selected : ''
}
const isColectionActive = (collection: { id: number }) => (collection.id === currentCollectionId ? styles.selected : '')

return (
editingContext?.editMode && (
Expand Down Expand Up @@ -76,9 +74,9 @@ export default function ImageLinkEditor({ imageLink }: PropTypes) {
renderer={collection => (
<div key={collection.id} className={`${styles.collection} ${isColectionActive(collection)}`}>
<button onClick={() => setCurrentCollectionId(collection.id)} className={styles.selector}></button>
<CollectionCard
className={styles.collectionCard}
collection={collection}
<CollectionCard
className={styles.collectionCard}
collection={collection}
/>
</div>
)}
Expand Down

0 comments on commit 14b91d1

Please sign in to comment.