Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mkst committed Sep 14, 2024
1 parent 4a56a7b commit c6b0cae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/Scratch/ScratchToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ import { DownloadIcon, FileIcon, IterationsIcon, RepoForkedIcon, SyncIcon, Trash
import classNames from "classnames"
import ContentEditable from "react-contenteditable"

import TimeAgo2 from "@/components/TimeAgo2"
import * as api from "@/lib/api"
import { scratchUrl } from "@/lib/api/urls"
import { useSize } from "@/lib/hooks"

import TimeAgo2 from "@/components/TimeAgo2"

import Breadcrumbs from "../Breadcrumbs"
import Nav from "../Nav"
import PlatformLink from "../PlatformLink"
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/components/Scratch/panels/AboutPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import LoadingSpinner from "@/components/loading.svg"
import { PlatformIcon } from "@/components/PlatformSelect/PlatformIcon"
import PlatformName from "@/components/PlatformSelect/PlatformName"
import { getScoreText } from "@/components/ScoreBadge"
import UserLink from "@/components/user/UserLink"
import TimeAgo2 from "@/components/TimeAgo2"

import UserLink from "@/components/user/UserLink"
import { Scratch, Preset, get, usePreset } from "@/lib/api"
import { presetUrl, scratchUrl, scratchParentUrl } from "@/lib/api/urls"

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ScratchList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Link from "next/link"

import classNames from "classnames"

import TimeAgo2 from "@/components/TimeAgo2"
import * as api from "@/lib/api"
import { presetUrl, scratchUrl } from "@/lib/api/urls"
import useTranslation from "@/lib/i18n/translate"
Expand All @@ -18,7 +19,6 @@ import { calculateScorePercent, percentToString } from "./ScoreBadge"
import styles from "./ScratchList.module.scss"
import Sort, { SortMode } from "./Sort"
import UserLink from "./user/UserLink"
import TimeAgo2 from "../components/TimeAgo2"

export interface Props {
title?: string
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/TimeAgo2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function formatDateString(x: string, format="YYYY-MM-DD HH:mm:ss") {
}

export default function TimeAgo2({
date
date,
}: {
date: string
}) {
Expand All @@ -17,5 +17,5 @@ export default function TimeAgo2({
return <TimeAgo
date={date}
title={title}
/>
/>
}

0 comments on commit c6b0cae

Please sign in to comment.