Removed useless source language button
This commit is contained in:
parent
cf76a49219
commit
cb4787ea42
|
@ -1,5 +1,4 @@
|
||||||
import AppLayout from "components/AppLayout";
|
import AppLayout from "components/AppLayout";
|
||||||
import Button from "components/Button";
|
|
||||||
import Chip from "components/Chip";
|
import Chip from "components/Chip";
|
||||||
import HorizontalLine from "components/HorizontalLine";
|
import HorizontalLine from "components/HorizontalLine";
|
||||||
import LanguageSwitcher from "components/LanguageSwitcher";
|
import LanguageSwitcher from "components/LanguageSwitcher";
|
||||||
|
@ -115,15 +114,12 @@ export default function Content(props: Props): JSX.Element {
|
||||||
selectedTextSet.language?.data?.attributes?.code && (
|
selectedTextSet.language?.data?.attributes?.code && (
|
||||||
<div className="grid place-items-center gap-2">
|
<div className="grid place-items-center gap-2">
|
||||||
<p className="font-headers">{langui.source_language}:</p>
|
<p className="font-headers">{langui.source_language}:</p>
|
||||||
<Button
|
<Chip>
|
||||||
href={router.asPath}
|
|
||||||
locale={selectedTextSet.source_language.data.attributes.code}
|
|
||||||
>
|
|
||||||
{prettyLanguage(
|
{prettyLanguage(
|
||||||
selectedTextSet.source_language.data.attributes.code,
|
selectedTextSet.source_language.data.attributes.code,
|
||||||
languages
|
languages
|
||||||
)}
|
)}
|
||||||
</Button>
|
</Chip>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue