File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
src/Components/Main-container Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const MainContainer = () => {
2020 const fetchData = async ( ) => {
2121 try {
2222 let getGoogleFonts = await fetch (
23- "https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyAjfp0YTzzzGDEWaGuXoN4imwRA4bTSwrM"
23+ "https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyAjfp0YTzzzGDEWaGuXoN4imwRA4bTSwrM&sort=popularity "
2424 ) ;
2525 let googleFonts = await getGoogleFonts . json ( ) ;
2626 console . log ( googleFonts ) ;
@@ -35,14 +35,13 @@ const MainContainer = () => {
3535 return (
3636 < main className = "main-container" >
3737 < Toolbar />
38- < p >
39- { data . items . map ( f => (
40- < div >
41- < p > { f . family } </ p >
42- < p > { f . category } </ p >
43- </ div >
44- ) ) }
45- </ p >
38+
39+ { data . items . map ( f => (
40+ < div >
41+ < p > { f . family } </ p >
42+ < p > { f . category } </ p >
43+ </ div >
44+ ) ) }
4645 </ main >
4746 ) ;
4847} ;
You can’t perform that action at this time.
0 commit comments