diff --git a/src/lib/helper.ts b/src/lib/helper.ts deleted file mode 100644 index 148b656..0000000 --- a/src/lib/helper.ts +++ /dev/null @@ -1,12 +0,0 @@ -export function getFromSessionStorage(key: string) { - if (typeof sessionStorage !== 'undefined') { - return sessionStorage.getItem(key); - } - return null; -} - -export function insertSpaces(string: string) { - string = string.replace(/([a-z])([A-Z])/g, '$1 $2'); - string = string.replace(/([A-Z])([A-Z][a-z])/g, '$1 $2'); - return string; -} diff --git a/src/lib/scrollToId.ts b/src/lib/scrollToId.ts deleted file mode 100644 index 6e1ec37..0000000 --- a/src/lib/scrollToId.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default function scrollToSection(sectionId: string) { - const section = document.getElementById(sectionId); - section?.scrollIntoView({ behavior: 'smooth' }); -}