Removed useless source language button

This commit is contained in:
DrMint 2022-04-23 22:15:04 +02:00
parent cf76a49219
commit cb4787ea42
1 changed files with 2 additions and 6 deletions

View File

@ -1,5 +1,4 @@
import AppLayout from "components/AppLayout";
import Button from "components/Button";
import Chip from "components/Chip";
import HorizontalLine from "components/HorizontalLine";
import LanguageSwitcher from "components/LanguageSwitcher";
@ -115,15 +114,12 @@ export default function Content(props: Props): JSX.Element {
selectedTextSet.language?.data?.attributes?.code && (
<div className="grid place-items-center gap-2">
<p className="font-headers">{langui.source_language}:</p>
<Button
href={router.asPath}
locale={selectedTextSet.source_language.data.attributes.code}
>
<Chip>
{prettyLanguage(
selectedTextSet.source_language.data.attributes.code,
languages
)}
</Button>
</Chip>
</div>
)}