section sources by lang

This commit is contained in:
Aria Moradi
2021-03-09 16:44:09 +03:30
parent 6f2f228e08
commit c842c51fb6
14 changed files with 163 additions and 50 deletions

View File

@@ -10,6 +10,7 @@ import Button from '@material-ui/core/Button';
import Avatar from '@material-ui/core/Avatar';
import Typography from '@material-ui/core/Typography';
import useLocalStorage from '../util/useLocalStorage';
import { langCodeToName } from '../util/language';
const useStyles = makeStyles((theme) => ({
root: {
@@ -67,7 +68,7 @@ export default function SourceCard(props: IProps) {
{name}
</Typography>
<Typography variant="caption" display="block" gutterBottom>
{lang}
{langCodeToName(lang)}
</Typography>
</div>
</div>