add top lang customize

This commit is contained in:
Christine Yu
2020-10-08 22:37:44 -04:00
parent acaa15dacf
commit a2d8a661a6
5 changed files with 84 additions and 58 deletions
+9 -2
View File
@@ -73,6 +73,15 @@ const DEFAULT_DATA = {
locale: "en",
},
topLanguages: false,
topLanguagesOptions: {
theme: "",
titleColor: "",
textColor: "",
bgColor: "",
hideBorder: false,
cacheSeconds: null,
locale: "en",
},
devDynamicBlogs: false,
mediumDynamicBlogs: false,
rssDynamicBlogs: false,
@@ -163,7 +172,6 @@ const IndexPage = () => {
}
const handleDataChange = (field, e) => {
debugger
let change = { ...data }
change[field] = e.target.value
setData(change)
@@ -465,7 +473,6 @@ const IndexPage = () => {
setRestore("")
}
}
console.log(data.githubStatsOptions)
return (
<Layout>
<div className="m-4 sm:p-4">