Skip to content

Commit

Permalink
Add claim list page title
Browse files Browse the repository at this point in the history
  • Loading branch information
pepermao committed Jun 7, 2024
1 parent 2deddd8 commit bf819d2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions public/locales/en/claim.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"errorWhileFetching": "Error while fetching Claim",
"cardLinkToImage": "see full image",
"cardLinkToDebate": "see full debate",
"claimListTitle": "Repository",
"claimListHeader": "Claims",
"imageAlreadyExists": "Image already exists in the platform",

Expand Down
2 changes: 1 addition & 1 deletion public/locales/pt/affix.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"affixButtonTitle": "Clique aqui para adicionar um discurso ou personalidade",
"affixButtonCreateClaim": "Clique aqui para adicionar um discurso",
"affixButtonCreatePersonality": "Clique aqui para adicionar uma personalidade",
"affixButtonCreateVerifiedSources": "Clique aqui para adicionar uma fonte",
"affixButtonCreateVerifiedSources": "Clique aqui para adicionar uma informação checada",
"affixCallToActionButton": "Clique aqui",
"AffixCloseTooltip": "Fechar"
}
3 changes: 2 additions & 1 deletion public/locales/pt/claim.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"errorWhileFetching": "Erro ao buscar o Discurso",
"cardLinkToImage": "veja a imagem completa",
"cardLinkToDebate": "veja o debate completo",
"claimListHeader": "Repositório",
"claimListTitle": "Repositório",
"claimListHeader": "Afirmações",
"imageAlreadyExists": "Essa imagem já existe em nossa plataforma",

"hideModalTitle": "Esconder afirmação",
Expand Down
7 changes: 7 additions & 0 deletions src/components/Claim/ClaimListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@ import { Row, Col } from "antd";
import React from "react";
import ClaimList from "./ClaimList";
import SourceList from "../Source/SourceList";
import { useTranslation } from "react-i18next";

const ClaimListView = () => {
const { t } = useTranslation();
return (
<>
<Row justify="center" style={{ marginTop: "64px" }}>
<Col sm={22} md={14} lg={21}>
<h1 style={{ fontSize: 32 }}>
{t("claim:claimListTitle")}
</h1>
</Col>
<Col sm={22} md={14} lg={12}>
<SourceList />
</Col>
Expand Down

0 comments on commit bf819d2

Please sign in to comment.