Skip to content

Commit

Permalink
fix: tpyo
Browse files Browse the repository at this point in the history
  • Loading branch information
Innei committed Aug 30, 2023
1 parent 948e908 commit 3de60e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/timeline/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Divider } from '~/components/ui/divider'
import { TimelineList } from '~/components/ui/list/TimelineList'
import { BottomToUpSoftScaleTransitionView } from '~/components/ui/transition/BottomToUpSoftScaleTransitionView'
import { PeekLink } from '~/components/widgets/peek/PeekLink'
import { TimelinProgress } from '~/components/widgets/timeline/TimelineProgress'
import { TimelineProgress } from '~/components/widgets/timeline/TimelineProgress'
import { apiClient } from '~/lib/request'
import { springScrollToElement } from '~/lib/scroller'

Expand Down Expand Up @@ -183,7 +183,7 @@ export default function TimelinePage() {
{!memory && (
<>
<Divider className="my-8 w-[80px]" />
<TimelinProgress />
<TimelineProgress />
<p>活在当下,珍惜眼下</p>
</>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/widgets/timeline/TimelineProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from '~/lib/datetime'

const PROGRESS_DURATION = 2
export const TimelinProgress = () => {
export const TimelineProgress = () => {
const [percentOfYear, setPercentYear] = useState(0)
const [percentOfDay, setPercentDay] = useState(0)
const [currentYear, setCurrentYear] = useState(new Date().getFullYear())
Expand Down

0 comments on commit 3de60e1

Please sign in to comment.