chore(deps): add prettier organize import

format code
This commit is contained in:
xfy
2024-07-26 11:43:33 +08:00
parent f36aa21c98
commit 920c6289fa
15 changed files with 59 additions and 47 deletions

View File

@ -1,4 +1,4 @@
import { Lobster, Barlow, JetBrains_Mono, Poppins } from 'next/font/google';
import { Barlow, JetBrains_Mono, Lobster, Poppins } from 'next/font/google';
export const lobster = Lobster({
weight: ['400'],

View File

@ -1,4 +1,4 @@
import { useState, useEffect } from 'react';
import { useEffect, useState } from 'react';
const useMounted = () => {
const [mounted, setMounted] = useState(false);

View File

@ -1,9 +1,9 @@
import fs from 'fs/promises';
import path from 'path';
import matter from 'gray-matter';
import { MyMatters, Post } from 'types';
import { sortByDate } from 'lib/utils';
import path from 'path';
import { cache } from 'react';
import { MyMatters, Post } from 'types';
export const dataPath = 'content/posts';