AVGVSTVS96 / astroSite

Built with Astro and TailwindCSS, this MPA portfolio & blog site is version 3 of my personal website, my first MPA.
https://astrosite-aid.pages.dev/
GNU Affero General Public License v3.0
0 stars 0 forks source link

Create `useThemeToggle` hook in new hooks directory and add import alias #273

Closed AVGVSTVS96 closed 4 months ago

AVGVSTVS96 commented 4 months ago

TL;DR

This PR introduces a new hook useThemeToggle and updates the tsconfig.json.

A new file useThemeToggle.tsx was added in the new src/hooks/ directory. This hook provides a reusable toggleTheme function that changes the theme between dark and light mode.

The tsconfig.json is updated with an import alias for the new hooks directory.

cloudflare-pages[bot] commented 4 months ago

Deploying astrosite with  Cloudflare Pages  Cloudflare Pages

Latest commit: afedbe5
Status: ✅  Deploy successful!
Preview URL: https://52904a2d.astrosite-aid.pages.dev
Branch Preview URL: https://createusethemetogglehook.astrosite-aid.pages.dev

View logs

codesandbox[bot] commented 4 months ago

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

AVGVSTVS96 commented 4 months ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @AVGVSTVS96 and the rest of your teammates on Graphite Graphite

AVGVSTVS96 commented 4 months ago

Merge activity