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