Skip to content

Commit

Permalink
fix broken icons into buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizFNJ committed Feb 15, 2025
1 parent e6d5662 commit d6bac66
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 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
1 change: 0 additions & 1 deletion src/components/Form/InputSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const InputSearch = (props) => {
variant="outlined"
placeholder={props.placeholder || ""}
size="large"
loading={loading}
onChange={(e) => doSearch(e)}
InputProps={{
startAdornment: props.prefix ? (
Expand Down
3 changes: 0 additions & 3 deletions src/components/Header/SelectLanguage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,10 @@ const SelectLanguage = (props: { defaultLanguage; dataCy }) => {
<>
{!vw?.xs && (
<SelectInput
bordered={false}
showArrow={true}
value={language}
onChange={(e) => setDefaultLanguage(e.target.value as string)}
onSelect={setDefaultLanguage}
data-cy={props.dataCy}
loading={switchLoading}
>
<MenuItem value="pt" data-cy="testLanguagePt">
<ReactCountryFlag
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 d6bac66

Please sign in to comment.