a a vibe-coded abomination experiment of a fragrance review platform built on the atmosphere. drydown.social

fixing nav back home when creating or editing a review

+2 -18
+1 -1
src/app.tsx
··· 58 58 ) : ( 59 59 <> 60 60 <header> 61 - <Link href="/" style={{ textDecoration: 'none', color: 'inherit' }}> 61 + <Link href="/" onClick={handleBackToDashboard} style={{ textDecoration: 'none', color: 'inherit' }}> 62 62 <h1>Drydown</h1> 63 63 </Link> 64 64 <div class="user-info">
+1 -17
src/components/CreateReview.tsx
··· 180 180 } 181 181 } 182 182 183 - const checkAuth = async () => { 184 - if (!atp) return 185 - try { 186 - console.log("Checking auth against:", (atp as any).service) 187 - const res = await atp.call('app.bsky.feed.getTimeline', { limit: 1 }) 188 - console.log("Auth Check Success:", res) 189 - alert("Auth OK! Timeline fetched.") 190 - } catch (e: any) { 191 - console.error("Auth Check Failed", e) 192 - alert(`Auth Failed: ${e.message || e}`) 193 - } 194 - } 195 - 196 183 const handleSubmit = async (e: Event) => { 197 184 e.preventDefault() 198 185 if (!atp || !selectedFragranceUri) return ··· 236 223 237 224 return ( 238 225 <div class="create-review-container"> 239 - <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}> 240 - <h2>Create Review</h2> 241 - <button type="button" onClick={checkAuth} style={{ fontSize: '0.8rem' }}>Check Auth</button> 242 - </div> 226 + <h2>Create Review</h2> 243 227 <button onClick={onCancel} class="btn-secondary" style={{ marginBottom: '1rem' }}>back</button> 244 228 245 229 <form onSubmit={handleSubmit}>