A decentralized music tracking and discovery platform built on AT Protocol 🎵

[web] clean commented codes

-43
-43
apps/web/src/layouts/Main.tsx
··· 49 text-decoration: underline; 50 } 51 `; 52 - /* 53 - const Text = styled.span` 54 - color: #ff2876; 55 - font-size: 13px; 56 - cursor: pointer; 57 - 58 - &:hover { 59 - text-decoration: underline; 60 - } 61 - */ 62 63 export type MainProps = { 64 children: React.ReactNode; ··· 119 return; 120 } 121 122 - /* const response = await fetch(`${API_URL}/login`, { 123 - method: "POST", 124 - headers: { 125 - "Content-Type": "application/json", 126 - }, 127 - body: JSON.stringify({ handle }), 128 - }); 129 - 130 - const redirectUrl = await response.text(); 131 - if (redirectUrl?.startsWith("Invalid")) { 132 - toaster.negative("Invalid Bluesky handle", {}); 133 - return; 134 - }*/ 135 - 136 - // window.location.href = `${API_URL}/login?handle=${handle}`; 137 - 138 if (API_URL.includes("localhost")) { 139 window.location.href = `${API_URL}/login?handle=${handle}`; 140 return; ··· 142 143 window.location.href = `https://rocksky.pages.dev/loading?handle=${handle}`; 144 }; 145 - 146 - /* 147 - const displaySurvey = () => { 148 - Object.keys(localStorage) 149 - .filter((key) => key.startsWith("seenSurvey")) 150 - .reverse() 151 - .forEach((key) => localStorage.removeItem(key)); 152 - }; 153 - */ 154 155 return ( 156 <Container className="bg-[var(--color-background)] text-[var(--color-text)]"> ··· 288 > 289 API Docs 290 </Link> 291 - {/* 292 - <Text 293 - className="mr-[10px] !text-[var(--color-primary)]" 294 - onClick={displaySurvey} 295 - > 296 - Feedback 297 - </Text> 298 - */} 299 300 <Link 301 href="https://discord.gg/EVcBy2fVa3"
··· 49 text-decoration: underline; 50 } 51 `; 52 53 export type MainProps = { 54 children: React.ReactNode; ··· 109 return; 110 } 111 112 if (API_URL.includes("localhost")) { 113 window.location.href = `${API_URL}/login?handle=${handle}`; 114 return; ··· 116 117 window.location.href = `https://rocksky.pages.dev/loading?handle=${handle}`; 118 }; 119 120 return ( 121 <Container className="bg-[var(--color-background)] text-[var(--color-text)]"> ··· 253 > 254 API Docs 255 </Link> 256 257 <Link 258 href="https://discord.gg/EVcBy2fVa3"