Skip to content

Commit

Permalink
Merge pull request #1821 from AletheiaFact/Fixing-broken-icons-into-b…
Browse files Browse the repository at this point in the history
…uttons

Fix broken icons into buttons
  • Loading branch information
thesocialdev authored Feb 19, 2025
2 parents e6d5662 + 23b76b8 commit 8269707
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
8 changes: 5 additions & 3 deletions src/components/ClaimReview/ClaimReviewDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@ const ClaimReviewDrawer = () => {
padding: "1rem",
display: "flex",
flexDirection: "column",
justifyContent:"space-between"
justifyContent: "space-between"
}}
>
<Grid item style={{ display: "flex", gap: 32 }}>
<AletheiaButton
icon={<ArrowBackOutlined style={{marginRight:"10px"}} fontSize="small"/>}
startIcon={
<ArrowBackOutlined style={{ marginRight: "10px" }} fontSize="small" />
}
onClick={() =>
dispatch(actions.closeReviewDrawer())
}
Expand Down Expand Up @@ -108,7 +110,7 @@ const ClaimReviewDrawer = () => {
justifyContent: "center",
gap: 8,
alignItems: "center",
marginTop:"10px"
marginTop: "10px"
}}
>
<ErrorOutlineOutlined
Expand Down
14 changes: 10 additions & 4 deletions src/components/ClaimReview/ReportModelButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ const ReportModelButtons = ({ setFormCollapsed }) => {
recreateMachine(event.currentTarget.id);
};

const addIcon = (
<AddIcon
style={{ marginBottom: "5px" }}
/>
);

return (
<Grid container
style={{
Expand All @@ -51,7 +57,7 @@ const ReportModelButtons = ({ setFormCollapsed }) => {
<Button
type={ButtonType.blue}
onClick={toggleFormCollapse}
icon={<AddIcon />}
startIcon={addIcon}
data-cy={
"testAddInformativeNewsReviewButton"
}
Expand All @@ -64,7 +70,7 @@ const ReportModelButtons = ({ setFormCollapsed }) => {
<Button
type={ButtonType.blue}
onClick={toggleFormCollapse}
icon={<AddIcon />}
startIcon={addIcon}
data-cy={"testAddFactCheckReviewButton"}
id={ReportModelEnum.FactChecking}
>
Expand All @@ -78,7 +84,7 @@ const ReportModelButtons = ({ setFormCollapsed }) => {
<Button
type={ButtonType.blue}
onClick={toggleFormCollapse}
icon={<AddIcon />}
startIcon={addIcon}
data-cy={"testAddFactCheckReviewButton"}
id={ReportModelEnum.FactChecking}
>
Expand All @@ -89,7 +95,7 @@ const ReportModelButtons = ({ setFormCollapsed }) => {
<Button
type={ButtonType.blue}
onClick={toggleFormCollapse}
icon={<AddIcon />}
startIcon={addIcon}
data-cy={
"testAddVerificationRequestReviewButton"
}
Expand Down
5 changes: 4 additions & 1 deletion src/components/ImageUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ const ImageUpload = ({
};

const uploadButton = (
<AletheiaButton data-cy="testUploadImage" icon={<FileUploadOutlined style={{fontSize:"17px", margin:"0 5 4 0"}} />}>
<AletheiaButton
data-cy="testUploadImage"
startIcon={<FileUploadOutlined style={{ fontSize: "17px", margin: "0 5 4 0" }} />}
>
{t("claimForm:fileInputButton")}
</AletheiaButton>
);
Expand Down

0 comments on commit 8269707

Please sign in to comment.