File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 11'use client' ;
22
3- import { useEffect , useState } from 'react' ;
3+ import { useState } from 'react' ;
44import Flex from '../../components/Flex' ;
55
66export default function AndroidUpgradeNotification ( ) {
7- const [ alertVisible , setAlertVisible ] = useState ( true ) ;
87 const androidUpgradeNotificationDismissed = localStorage . getItem (
98 'relistenAndroidNotificationDismissed'
109 ) ;
10+ const [ alertVisible , setAlertVisible ] = useState ( ! androidUpgradeNotificationDismissed ) ;
1111
1212 const dismissAlert = ( ) => {
1313 localStorage . setItem ( 'relistenAndroidNotificationDismissed' , 'true' ) ;
1414 setAlertVisible ( false ) ;
1515 } ;
1616
17- useEffect ( ( ) => {
18- if ( androidUpgradeNotificationDismissed ) setAlertVisible ( false ) ;
19- } , [ androidUpgradeNotificationDismissed ] ) ;
20-
2117 return alertVisible ? (
2218 < Flex column className = "border-b-[1px] border-b-[#aeaeae]" >
2319 < section className = "relative my-2 flex flex-col justify-center" >
Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ import AndroidUpgradeNotification from './AndroidUpgradeNotification';
1111export default async function NavBar ( ) {
1212 const artists = await fetchArtists ( ) ;
1313 const userAgent = await getUserAgent ( ) ;
14- const isAndroid = / a n d r o i d / i. test ( userAgent ?. ua || '' ) ;
14+
15+ // const isAndroid = /android/i.test(userAgent?.ua || '');
16+ const isAndroid = true ;
1517
1618 const artistSlugsToName = artists . reduce (
1719 ( memo , next ) => {
You can’t perform that action at this time.
0 commit comments