refactor, fix fetch loop

This commit is contained in:
Aria Moradi
2021-01-19 14:47:07 +03:30
parent 1e46a0c78c
commit f085f26d10
7 changed files with 100 additions and 81 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ export default function SourceCard(props: IProps) {
</div>
</div>
<div style={{ display: 'flex' }}>
{supportsLatest && <Button variant="outlined">Latest</Button>}
{supportsLatest && <Button variant="outlined" style={{ marginLeft: 20 }} onClick={() => { window.location.href = `sources/${id}/latest`; }}>Latest</Button>}
<Button variant="outlined" style={{ marginLeft: 20 }} onClick={() => { window.location.href = `sources/${id}/popular`; }}>Browse</Button>
</div>
</CardContent>