WIP PWA for Grain
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add notifications button to bottom nav

+14
+14
src/components/organisms/grain-bottom-nav.js
··· 95 95 return window.location.pathname === '/explore'; 96 96 } 97 97 98 + get #isNotifications() { 99 + return window.location.pathname === '/notifications'; 100 + } 101 + 98 102 #handleHome() { 99 103 router.push('/'); 100 104 } ··· 107 111 108 112 #handleExplore() { 109 113 router.push('/explore'); 114 + } 115 + 116 + #handleNotifications() { 117 + router.push('/notifications'); 110 118 } 111 119 112 120 #handleCreate() { ··· 166 174 multiple 167 175 @change=${this.#handleFilesSelected} 168 176 > 177 + <button 178 + class=${this.#isNotifications ? 'active' : ''} 179 + @click=${this.#handleNotifications} 180 + > 181 + <grain-icon name=${this.#isNotifications ? 'bellFilled' : 'bell'} size="20"></grain-icon> 182 + </button> 169 183 ` : ''} 170 184 <button 171 185 class=${this.#isOwnProfile ? 'active' : ''}