WIP PWA for Grain
0
fork

Configure Feed

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

feat: add haptic feedback to bottom nav taps

+6
+6
src/components/organisms/grain-bottom-nav.js
··· 1 1 import { LitElement, html, css } from 'lit'; 2 2 import { router } from '../../router.js'; 3 3 import { auth } from '../../services/auth.js'; 4 + import { trigger as haptic } from '../../utils/haptics.js'; 4 5 import { draftGallery } from '../../services/draft-gallery.js'; 5 6 import { processPhotos } from '../../utils/image-resize.js'; 6 7 import '../atoms/grain-icon.js'; ··· 100 101 } 101 102 102 103 #handleHome() { 104 + haptic(); 103 105 router.push('/'); 104 106 } 105 107 106 108 #handleProfile() { 109 + haptic(); 107 110 if (this._user?.handle) { 108 111 router.push(`/profile/${this._user.handle}`); 109 112 } 110 113 } 111 114 112 115 #handleExplore() { 116 + haptic(); 113 117 router.push('/explore'); 114 118 } 115 119 116 120 #handleNotifications() { 121 + haptic(); 117 122 router.push('/notifications'); 118 123 } 119 124 120 125 #handleCreate() { 126 + haptic(); 121 127 this.shadowRoot.getElementById('photo-input').click(); 122 128 } 123 129