mirror of
https://github.com/audacity/audacity.github.io.git
synced 2026-04-12 06:25:33 -05:00
[PR #38] [MERGED] Banner logic improvements #44
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/audacity/audacity.github.io/pull/38
Author: @DilsonsPickles
Created: 10/7/2024
Status: ✅ Merged
Merged: 10/11/2024
Merged by: @LWinterberg
Base:
main← Head:banner-logic-improvements📝 Commits (4)
ccae7a3Install @types/platform76d0bb3Create useDetectOS hook7543cb3Remove unused import7e740d0Remove unused prop📊 Changes
6 files changed (+67 additions, -44 deletions)
View changed files
📝
package-lock.json(+7 -0)📝
package.json(+1 -0)📝
src/components/banner/PromoBanner.tsx(+39 -42)➕
src/hooks/useDetectOS.ts(+17 -0)📝
src/layouts/BaseLayout.astro(+3 -1)📝
src/pages/index.astro(+0 -1)📄 Description
Create hook function that uses useEffect to fetch browserOS. This creates a reusable function that we can use where needed without having to repeat the browserOS logic.
I've also tidied up the banner styling so that it renders a bit nicer on smaller screens.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.