feat: don't update progress bar on searches
This commit is contained in:
parent
bb846068f3
commit
d662572bcd
|
@ -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());
|
||||
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
import React from 'react';
|
||||
|
||||
export default function DropdownForStars({
|
||||
value,
|
||||
onChange,
|
||||
options,
|
||||
howmanystars,
|
||||
}) {
|
||||
const handleSelectOption = (event) => {
|
||||
onChange(event.target.value);
|
||||
};
|
||||
|
||||
return (
|
||||
<select
|
||||
onChange={(e) => handleSelectOption(e)}
|
||||
className="border-none"
|
||||
value={options.filter((option) => howmanystars(option) == value)[0]}
|
||||
>
|
||||
{options.map((address, key) => {
|
||||
return (
|
||||
<option key={key} value={address}>
|
||||
{address}
|
||||
</option>
|
||||
);
|
||||
})}
|
||||
</select>
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user