Skip to content

Commit

Permalink
Fix 'format' deployment bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bradystroud committed Apr 14, 2024
1 parent 5d4a423 commit 475664d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/posts/reviews.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import Link from "next/link";
import { BsArrowRight, BsPinMap } from "react-icons/bs";
import format from "date-fns/format";
import { format } from "date-fns";

export const Reviews = ({ data }) => {
return (
Expand Down
3 changes: 2 additions & 1 deletion pages/[filename].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ export default function HomePage(
data: props.data,
});
const bestParmi = props.topParmi.node;
const bestParmiReview = bestParmi.id.split(".")[0];
return (
// eslint-disable-next-line @typescript-eslint/no-explicit-any
<Layout data={data.global as any}>
<Blocks {...data.page} />
<section className="m-auto">
<Link href={bestParmi.id.split(".")[0]}>
<Link href={bestParmiReview}>
<div className="badge">
<svg width="300" height="50" className="best">
{" "}
Expand Down

0 comments on commit 475664d

Please sign in to comment.