diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index df5d536..86e1028 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -4,7 +4,12 @@ import '../styles/main.css'; import Router from 'next/router'; import NProgress from 'nprogress'; -Router.events.on("routeChangeStart", () => NProgress.start()); +Router.events.on("routeChangeStart", (as, { shallow }) => { + console.log(shallow); + if (!shallow) { + NProgress.start(); + } +}); Router.events.on("routeChangeComplete", () => NProgress.done()); Router.events.on("routeChangeError", () => NProgress.done()); diff --git a/src/web/display/dropdown.tsx b/src/web/display/dropdown.tsx deleted file mode 100644 index 0766401..0000000 --- a/src/web/display/dropdown.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import React from 'react'; - -export default function DropdownForStars({ - value, - onChange, - options, - howmanystars, -}) { - const handleSelectOption = (event) => { - onChange(event.target.value); - }; - - return ( - - ); -}