fix fetchers/stats.js, toggle show_icons default
This commit is contained in:
@@ -179,13 +179,13 @@ const fetchTotalItems = (variables, token) => {
|
||||
method: "get",
|
||||
url:
|
||||
`https://api.github.com/search/` +
|
||||
type +
|
||||
variables.type +
|
||||
`?per_page=1&q=` +
|
||||
buildSearchFilter(variables.repo, variables.owner).replaceAll(
|
||||
" ",
|
||||
"+",
|
||||
) +
|
||||
filter,
|
||||
variables.filter,
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
Accept: "application/vnd.github.cloak-preview",
|
||||
@@ -215,6 +215,8 @@ const totalItemsFetcher = async (username, repo, owner, type, filter) => {
|
||||
login: username,
|
||||
repo,
|
||||
owner,
|
||||
type,
|
||||
filter,
|
||||
});
|
||||
} catch (err) {
|
||||
logger.log(err);
|
||||
|
||||
@@ -53,7 +53,7 @@ const HomeScreen = () => {
|
||||
const [descriptionLines, setDescriptionLines] = useState();
|
||||
const [customTitle, setCustomTitle] = useState('');
|
||||
const [langsCount, setLangsCount] = useState();
|
||||
const [showIcons, setShowIcons] = useState(true);
|
||||
const [showIcons, setShowIcons] = useState(false);
|
||||
const [enableAnimations, setEnableAnimations] = useState(true);
|
||||
const [usePercent, setUsePercent] = useState(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user