@@ -5,7 +5,7 @@ import { useEffect, useState } from 'react';
55
66const spinnerFrames = [ '◐' , '◓' , '◑' , '◒' ] ;
77
8- const Meta = ( { loading } : { loading ?: boolean } ) => {
8+ const Meta : React . FC < { loading ?: boolean } > = ( { loading } ) => {
99 const [ searchParams , _setSearchParams ] = useSearchParams ( ) ;
1010 const { pathname, search } = useLocation ( ) ;
1111 const [ currentSpinnerFrame , setCurrentSpinnerFrame ] = useState (
@@ -15,7 +15,7 @@ const Meta = ({ loading }: { loading?: boolean }) => {
1515 const domain = searchParams . get ( 'domain' ) ;
1616
1717 const title = `${ loading ? currentSpinnerFrame + ' - ' : '' } ${
18- domain ? ` ${ domain } - ` : ''
18+ domain ? domain + ' - ' : ''
1919 } DomainLookup`;
2020 const currentUrl = BASE_URL + pathname + search ;
2121
@@ -26,26 +26,22 @@ const Meta = ({ loading }: { loading?: boolean }) => {
2626 const nextIndex =
2727 ( spinnerFrames . indexOf ( prev ) + 1 ) % spinnerFrames . length ;
2828
29- console . log ( nextIndex ) ;
3029 return spinnerFrames [ nextIndex ] ;
3130 } ) ;
32- } , 200 ) ;
31+ } , 250 ) ;
3332
3433 return ( ) => clearInterval ( spinnerInterval ) ;
3534 } , [ loading ] ) ;
3635
3736 return (
3837 < Helmet >
39- < meta charSet = "UTF-8" />
40- < link rel = "icon" type = "image/svg+xml" href = "/dl-logo.png" />
41- < meta name = "viewport" content = "width=device-width, initial-scale=1.0" />
4238 < title > { title } </ title >
4339 < meta name = "description" content = { DESCRIPTION } />
44- < meta name = "og:title" content = { title } />
45- < meta name = "og:type" content = { TYPE } />
46- < meta name = "og:description" content = { DESCRIPTION } />
47- < meta name = "og:image" content = { `${ BASE_URL } /og-dl.png` } />
48- < meta name = "og:url" content = { currentUrl } />
40+ < meta property = "og:title" content = { title } />
41+ < meta property = "og:type" content = { TYPE } />
42+ < meta property = "og:description" content = { DESCRIPTION } />
43+ < meta property = "og:image" content = { `${ BASE_URL } /og-dl.png` } />
44+ < meta property = "og:url" content = { currentUrl } />
4945 </ Helmet >
5046 ) ;
5147} ;
0 commit comments