Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Osbourne committed Oct 7, 2024
1 parent d7c445a commit 3e67f73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useContext } from 'preact/hooks'
import { TileMemo } from './Tile.js'
import { FavoritesContext, FavoritesDispatchContext, FavoritesProvider } from './FavoritesProvider.js'
import { useGridState } from './FavouritesGrid.js'
import { memo } from "preact/compat";
import { memo } from 'preact/compat'

/**
* @typedef {import('../../../../types/new-tab').Expansion} Expansion
Expand Down Expand Up @@ -81,7 +81,7 @@ const PlusIcon = memo(function PlusIcon () {
* @return {number|number}
*/
function calculatePlaceholders (totalItems, itemsPerRow) {
if (totalItems===0) return itemsPerRow
if (totalItems === 0) return itemsPerRow
// Calculate how many items are left over in the last row
const itemsInLastRow = totalItems % itemsPerRow

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const favorites = {
/** @type {Favorite[]} */
favorites: [
{ id: 'id-two-1', data: 'https://1.example.com', title: 'Amazon', favicon: './company-icons/amazon.svg' },
{ id: 'id-two-2', data: 'https://2.example.com', title: 'Adform', favicon: './company-icons/adform.svg' },
{ id: 'id-two-2', data: 'https://2.example.com', title: 'Adform', favicon: './company-icons/adform.svg' }
]
},
single: {
Expand Down

0 comments on commit 3e67f73

Please sign in to comment.