Skip to content

Commit

Permalink
update: fix linter and change to v 2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyleen77 committed Jul 16, 2023
1 parent 4e14ad5 commit a70a96f
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion demo/app-dir/src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Link from "next/link";
import Link from 'next/link';

const Dashboard = () => {
return (
Expand Down
8 changes: 4 additions & 4 deletions demo/app-dir/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use client";
'use client';

import Link from "next/link";
import Link from 'next/link';
// import { useRouter } from 'next/navigation';
import { useRouter } from "../../../../dist";
import { useRouter } from '../../../../dist';

export default function Home() {
const router = useRouter();
Expand All @@ -12,7 +12,7 @@ export default function Home() {
<Link href="/">Same route</Link>
<Link href="/?test=param">Sallow</Link>
<Link href="/dashboard">Dashboard</Link>
<button onClick={() => router.push("/dashboard")}>Push Dashboard</button>
<button onClick={() => router.push('/dashboard')}>Push Dashboard</button>
<a
href="https://www.npmjs.com/package/next-nprogress-bar"
target="_blank"
Expand Down
6 changes: 3 additions & 3 deletions dist/appDir.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { ProgressBarProps } from ".";
import { NavigateOptions } from "next/dist/shared/lib/app-router-context";
import React from 'react';
import { ProgressBarProps } from '.';
import { NavigateOptions } from 'next/dist/shared/lib/app-router-context';
export declare const AppProgressBar: React.MemoExoticComponent<({ color, height, options, shallowRouting, delay, style, }: ProgressBarProps) => React.JSX.Element>;
export declare function useRouter(): {
push: (href: string, options?: NavigateOptions) => void;
Expand Down
10 changes: 5 additions & 5 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a70a96f

Please sign in to comment.