update caniuse-lite
This commit is contained in:
parent
c967bcec0b
commit
3e71ccaa62
|
@ -8,7 +8,7 @@ const projects = [
|
|||
'Golang',
|
||||
'gqlgen',
|
||||
'Gin',
|
||||
'discordgo',
|
||||
'bwmarrin/discordgo',
|
||||
'robfig/cron',
|
||||
'Redis',
|
||||
'PostgreSQL',
|
||||
|
@ -34,7 +34,7 @@ const projects = [
|
|||
'GraphQL',
|
||||
'Golang',
|
||||
'gqlgen',
|
||||
'Gin',
|
||||
'go-chi',
|
||||
'PostgreSQL',
|
||||
'TypeScript',
|
||||
'React',
|
||||
|
@ -43,6 +43,7 @@ const projects = [
|
|||
'Create React App',
|
||||
'Material-UI',
|
||||
'Apollo',
|
||||
'Traefik'
|
||||
],
|
||||
fluid: 'projects/zdam.png',
|
||||
live: 'https://zdamegzaminzawodowy.pl/',
|
||||
|
|
|
@ -2,14 +2,16 @@ import isSmoothScrollSupported from '@utils/isSmoothScrollSupported';
|
|||
|
||||
const useSmoothScroll = () => {
|
||||
return id => e => {
|
||||
if (isSmoothScrollSupported()) {
|
||||
e.preventDefault();
|
||||
document.querySelector('#' + id).scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'start',
|
||||
inline: 'nearest',
|
||||
});
|
||||
if (!isSmoothScrollSupported()) {
|
||||
return;
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
document.querySelector('#' + id).scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'start',
|
||||
inline: 'nearest',
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -3325,9 +3325,9 @@ caniuse-api@^3.0.0:
|
|||
lodash.uniq "^4.5.0"
|
||||
|
||||
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001125, caniuse-lite@^1.0.30001196, caniuse-lite@^1.0.30001214:
|
||||
version "1.0.30001214"
|
||||
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001214.tgz#70f153c78223515c6d37a9fde6cd69250da9d872"
|
||||
integrity sha512-O2/SCpuaU3eASWVaesQirZv1MSjUNOvmugaD8zNSJqw6Vv5SGwoOpA9LJs3pNPfM745nxqPvfZY3MQKY4AKHYg==
|
||||
version "1.0.30001269"
|
||||
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001269.tgz"
|
||||
integrity sha512-UOy8okEVs48MyHYgV+RdW1Oiudl1H6KolybD6ZquD0VcrPSgj25omXO1S7rDydjpqaISCwA8Pyx+jUQKZwWO5w==
|
||||
|
||||
caw@^2.0.0, caw@^2.0.1:
|
||||
version "2.0.1"
|
||||
|
|
Loading…
Reference in New Issue