show correct language on sources, used cached results on getHttpSource to imporve performance a lot

This commit is contained in:
Aria Moradi
2020-12-25 18:45:33 +03:30
parent ab33a0ef1d
commit f20c51c558
4 changed files with 49 additions and 23 deletions

View File

@@ -44,7 +44,6 @@ export default function SourceCard(props: IProps) {
} = props;
const classes = useStyles();
const langPress = lang === 'all' ? 'All' : lang.toUpperCase();
return (
<Card>
@@ -61,7 +60,7 @@ export default function SourceCard(props: IProps) {
{name}
</Typography>
<Typography variant="caption" display="block" gutterBottom>
{langPress}
{lang}
</Typography>
</div>
</div>