diff --git a/src/features/IndexPage/components/Portfolio/projects.js b/src/features/IndexPage/components/Portfolio/projects.js index 1cee1b8..28e475a 100644 --- a/src/features/IndexPage/components/Portfolio/projects.js +++ b/src/features/IndexPage/components/Portfolio/projects.js @@ -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/', diff --git a/src/libs/useSmoothScroll.js b/src/libs/useSmoothScroll.js index 20530e7..b1212c8 100644 --- a/src/libs/useSmoothScroll.js +++ b/src/libs/useSmoothScroll.js @@ -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', + }); }; }; diff --git a/yarn.lock b/yarn.lock index 7e37b82..8a88a12 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"