diff --git a/astro.config.mjs b/astro.config.mjs index a522dba..a4f1746 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,9 +1,9 @@ -import { defineConfig } from 'astro/config'; -import tailwind from '@astrojs/tailwind'; +import { defineConfig } from 'astro/config' -import preact from "@astrojs/preact"; +import tailwind from '@astrojs/tailwind' +import preact from '@astrojs/preact' // https://astro.build/config export default defineConfig({ - integrations: [tailwind(), preact()] -}); \ No newline at end of file + integrations: [tailwind(), preact()] +}) diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index e3b013e..def4d39 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -1,5 +1,4 @@ --- -import { info } from '@/data/info' import Sun from './icons/sun.svg.astro' import Moon from './icons/moon.svg.astro' diff --git a/src/components/details/base/CopyButton.tsx b/src/components/details/base/CopyButton.tsx index 4bc8083..51290ca 100644 --- a/src/components/details/base/CopyButton.tsx +++ b/src/components/details/base/CopyButton.tsx @@ -1,3 +1,4 @@ +/** @jsxImportSource preact */ import { useState, type FC, type PropsWithChildren } from 'preact/compat' type CopyButtonProps = { @@ -27,8 +28,11 @@ const CopyButton: FC> = ({ } return ( -
- +
+ +
{tooltipText} diff --git a/tsconfig.json b/tsconfig.json index deec6f2..9770ca3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact", - "baseUrl": "/Users/hedior/Developer/personal/portfolio", + "baseUrl": ".", "paths": { "@/*": ["./src/*"] }