Skip to content

Commit

Permalink
Revert "fix: eslint errors"
Browse files Browse the repository at this point in the history
This reverts commit 9f44765.
  • Loading branch information
ttttonyhe committed Dec 31, 2024
1 parent 9f44765 commit 5febc22
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/main/src/components/Banners/NextJS13Preview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Image from "next/image"

const NextJS13Preview = () => {
return (
<div className="flex w-full gap-x-4 rounded-md border bg-white px-4 py-2.5 pl-4.5 shadow-sm dark:border-gray-800 dark:bg-gray-800">
<div className="flex w-full gap-x-4 rounded-md border bg-white px-4 py-2.5 pl-4.5 shadow-sm dark:border-gray-800 dark:bg-gray-800">
<div className="flex items-center">
<Image
src="https://static.ouorz.com/nextjs-icon-light-background.svg"
Expand Down
5 changes: 1 addition & 4 deletions apps/main/src/components/Top/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ export default function Top() {
return (
<div className="mt-4 grid lg:grid-cols-5 lg:gap-3">
<div className="col-span-3 col-start-1 hidden grid-cols-3 gap-3 lg:grid">
<a
target="_blank"
href="mailto:[email protected]"
rel="noreferrer">
<a target="_blank" href="mailto:[email protected]" rel="noreferrer">
<Button
type="default"
icon="email"
Expand Down
16 changes: 8 additions & 8 deletions apps/main/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import React, { useState } from "react"
import PagesAndLinks from "~/components/Banners/PagesAndLinks"
import EmploymentCard from "~/components/Card/Employment"
import PaperCard from "~/components/Card/Paper"
// import List from "~/components/List"
import List from "~/components/List"
import { pageLayout } from "~/components/Page"
import SubscriptionBox from "~/components/SubscriptionBox"
import Top from "~/components/Top"
import { NextPageWithLayout } from "~/pages/_app"

const Home: NextPageWithLayout = () => {
// const [showPosts, setShowPosts] = useState(false)
const [showPosts, setShowPosts] = useState(false)
const [maskClass, setMaskClass] = useState("mask-x-r")

return (
Expand Down Expand Up @@ -352,15 +352,15 @@ const Home: NextPageWithLayout = () => {
</span>
</button> */}
</div>
{/* {showPosts ? (
{showPosts ? (
<div className="mt-5 animate-appear">
<List type="index" />
</div>
) : ( */}
<div className="mt-5">
<SubscriptionBox type="sm" />
</div>
{/* )} */}
) : (
<div className="mt-5">
<SubscriptionBox type="sm" />
</div>
)}
</section>
</>
)
Expand Down

0 comments on commit 5febc22

Please sign in to comment.