downloading (almost) and only show when migoto is set

This commit is contained in:
SpikeHD
2022-07-23 23:14:31 -07:00
parent c0740417e3
commit 4f3952aeb1
5 changed files with 36 additions and 15 deletions

View File

@@ -8,6 +8,7 @@ import Download from '../../../resources/icons/download.svg'
interface IProps {
mod: ModData
onClick: (mod: ModData) => void
}
interface IState {
@@ -31,6 +32,7 @@ export class ModTile extends React.Component<IProps, IState> {
className="ModListItem"
onMouseEnter={() => this.setState({ hover: true })}
onMouseLeave={() => this.setState({ hover: false })}
onClick={() => this.props.onClick(mod)}
>
<span className="ModName">{mod.name}</span>
<span className="ModAuthor">{mod.submitter.name}</span>