@@ -70,13 +70,6 @@ export const links: LinksFunction = () => {
7070	] . filter ( Boolean ) 
7171} 
7272
73- export  const  meta : MetaFunction < typeof  loader >  =  ( {  data } )  =>  { 
74- 	return  [ 
75- 		{  title : data  ? 'Epic Notes'  : 'Error | Epic Notes'  } , 
76- 		{  name : 'description' ,  content : `Your own captain's log`  } , 
77- 	] 
78- } 
79- 
8073export  async  function  loader ( {  request } : LoaderFunctionArgs )  { 
8174	const  timings  =  makeTimings ( 'root loader' ) 
8275	const  userId  =  await  time ( ( )  =>  getUserId ( request ) ,  { 
@@ -168,6 +161,7 @@ function Document({
168161				< Meta  /> 
169162				< meta  charSet = "utf-8"  /> 
170163				< meta  name = "viewport"  content = "width=device-width,initial-scale=1"  /> 
164+ 				< meta  name = "description"  content = "Your own captain's log"  /> 
171165				{ allowIndexing  ? null  : ( 
172166					< meta  name = "robots"  content = "noindex, nofollow"  /> 
173167				) } 
@@ -194,7 +188,7 @@ function App() {
194188	const  user  =  useOptionalUser ( ) 
195189	const  theme  =  useTheme ( ) 
196190	const  matches  =  useMatches ( ) 
197- 	const  isOnSearchPage  =  matches . find ( ( m )  =>  m . id  ===  'routes/users+/index' ) 
191+ 	const  isOnSearchPage  =  matches . find ( m  =>  m . id  ===  'routes/users+/index' ) 
198192	const  searchBar  =  isOnSearchPage  ? null  : < SearchBar  status = "idle"  /> 
199193	const  allowIndexing  =  data . ENV . ALLOW_INDEXING  !==  'false' 
200194	useToast ( data . toast ) 
@@ -206,6 +200,8 @@ function App() {
206200			allowIndexing = { allowIndexing } 
207201			env = { data . ENV } 
208202		> 
203+ 			< title > Epic Notes</ title > 
204+ 
209205			< div  className = "flex h-screen flex-col justify-between" > 
210206				< header  className = "container py-6" > 
211207					< nav  className = "flex flex-wrap items-center justify-between gap-4 sm:flex-nowrap md:gap-8" > 
@@ -276,7 +272,7 @@ function UserDropdown() {
276272					< Link 
277273						to = { `/users/${ user . username }  ` } 
278274						// this is for progressive enhancement 
279- 						onClick = { ( e )  =>  e . preventDefault ( ) } 
275+ 						onClick = { e  =>  e . preventDefault ( ) } 
280276						className = "flex items-center gap-2" 
281277					> 
282278						< img 
@@ -309,7 +305,7 @@ function UserDropdown() {
309305					< DropdownMenuItem 
310306						asChild 
311307						// this prevents the menu from closing before the form submission is completed 
312- 						onSelect = { ( event )  =>  { 
308+ 						onSelect = { event  =>  { 
313309							event . preventDefault ( ) 
314310							submit ( formRef . current ) 
315311						} } 
@@ -340,6 +336,7 @@ export function ErrorBoundary() {
340336
341337	return  ( 
342338		< Document  nonce = { nonce } > 
339+ 			< title > Error | Epic Notes</ title > 
343340			< GeneralErrorBoundary  /> 
344341		</ Document > 
345342	) 
0 commit comments