Skip to content

Commit

Permalink
Removing leftover code from Shelf
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewTurk247 committed Oct 10, 2023
1 parent 4057072 commit 9fca9a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/common/Shelf.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ import { formatDate, itemize } from "../../utils/format";

const pixelRatio = PixelRatio.get();
const fontScale = PixelRatio.getFontScale();
const { width, height } = Dimensions.get("window");
const { width } = Dimensions.get("window");

export default function Shelf({ articles, alternate, navigation }) {
const theme = useTheme();
const inactiveColor = theme[alternate ? "color-primary-600" : "background-color-basic-2"];
const { deviceType } = useContext(ThemeContext);
const groupSize = deviceType === DeviceType.PHONE ? 1 : 2;

let shelfArticles = articles;
const shelfArticles = articles; // Won't be reassigned, so the `const` keyword is appropriate.
while (shelfArticles.length % (3 * groupSize) !== 0) {
shelfArticles.pop();
}
Expand Down

0 comments on commit 9fca9a9

Please sign in to comment.