Skip to content

Commit

Permalink
fix: console errors
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstefanequilobe committed Feb 7, 2022
1 parent f1485da commit 04d77b3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
16 changes: 10 additions & 6 deletions src/components/forms/CreateEstimationsForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const InputContainer = styled('div')`
`;

const CreateEstimationsForm = ({ value, onChange }) => {
console.log(value);
const intl = useIntl();
const onInputChange = (field, changeValue) => {
onChange(u({ [field]: changeValue }, value));
Expand All @@ -50,7 +49,8 @@ const CreateEstimationsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'estimations-crediting-period-start-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand All @@ -74,7 +74,8 @@ const CreateEstimationsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'estimations-crediting-period-end-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand All @@ -98,7 +99,8 @@ const CreateEstimationsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'ratings-unit-count-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand Down Expand Up @@ -129,7 +131,8 @@ const CreateEstimationsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'ratings-verification-date-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand All @@ -153,7 +156,8 @@ const CreateEstimationsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'ratings-verification-body-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand Down
23 changes: 15 additions & 8 deletions src/components/forms/CreateRatingsForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const InputContainer = styled('div')`
`;

const CreateRatingsForm = ({ value, onChange }) => {
console.log(value);
const intl = useIntl();
const onInputChange = (field, changeValue) => {
onChange(u({ [field]: changeValue }, value));
Expand All @@ -49,7 +48,8 @@ const CreateRatingsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'ratings-id-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand All @@ -75,7 +75,8 @@ const CreateRatingsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'ratings-rating-type-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand Down Expand Up @@ -103,7 +104,8 @@ const CreateRatingsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'ratings-rating-range-highest-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand Down Expand Up @@ -133,7 +135,8 @@ const CreateRatingsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'ratings-rating-range-lowest-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand Down Expand Up @@ -161,7 +164,8 @@ const CreateRatingsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'ratings-rating-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand All @@ -187,7 +191,8 @@ const CreateRatingsForm = ({ value, onChange }) => {
<ToolTipContainer
tooltip={intl.formatMessage({
id: 'ratings-rating-link-description',
})}>
})}
>
<DescriptionIcon height="14" width="14" />
</ToolTipContainer>
</Body>
Expand All @@ -200,7 +205,9 @@ const CreateRatingsForm = ({ value, onChange }) => {
})}
state={InputStateEnum.default}
value={value.ratingLink}
onChange={changeValue => onInputChange('rating-link', changeValue)}
onChange={changeValue =>
onInputChange('rating-link', changeValue)
}
/>
</InputContainer>
</StyledFieldContainer>
Expand Down
1 change: 0 additions & 1 deletion src/pages/Units/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ const Units = withRouter(() => {
if (!climateWarehouseStore.units) {
return null;
}
console.log(climateWarehouseStore);

return climateWarehouseStore.units.map(unit =>
_.pick(unit, [
Expand Down

0 comments on commit 04d77b3

Please sign in to comment.