interepret API response

This commit is contained in:
SpikeHD
2022-07-23 19:44:08 -07:00
parent a9d9d361e1
commit d97e5c192f
6 changed files with 122 additions and 5 deletions

View File

@@ -7,8 +7,8 @@
transform: translateZ(1px);
position: absolute;
top: 50%;
left: 50%;
top: 45%;
left: 48.5%;
}
.LoadingCircle > div {

View File

@@ -14,6 +14,11 @@
}
.ModHeaderTitle {
display: flex;
justify-content: center;
width: 100%;
max-width: 20%;
}
.ModHeaderTitle:hover {

View File

@@ -1,10 +1,11 @@
import React from 'react'
import { getMods } from '../../../utils/gamebanana'
import { LoadingCircle } from './LoadingCircle'
import './ModList.css'
interface IProps {
sort: string
mode: string
}
interface IState {
@@ -16,6 +17,14 @@ export class ModList extends React.Component<IProps, IState> {
super(props)
}
async componentDidMount() {
if (this.props.mode === 'installed') return
const mods = await getMods(this.props.mode)
console.log(mods)
}
render() {
return (
<div className="ModList">