Skip to content

Commit

Permalink
fix some problems second time
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlovoleksii committed Jan 6, 2025
1 parent c86de25 commit ba3af59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export const App: React.FC = () => {

<ErrorMessage
message={errorMessage}
clearMessage={() => setErrorMessage('')}
removeMessage={() => setErrorMessage('')}
/>
</div>
);
Expand Down
6 changes: 3 additions & 3 deletions src/components/errorsUnderFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ export function sendErrorMessage(

type Props = {
message: string;
clearMessage: () => void;
removeMessage: () => void;
};

export const ErrorMessage: React.FC<Props> = ({ message, clearMessage }) => {
export const ErrorMessage: React.FC<Props> = ({ message, removeMessage }) => {
return (
<div
data-cy="ErrorNotification"
Expand All @@ -28,7 +28,7 @@ export const ErrorMessage: React.FC<Props> = ({ message, clearMessage }) => {
data-cy="HideErrorButton"
type="button"
className="delete"
onClick={clearMessage}
onClick={removeMessage}
/>
{message}
</div>
Expand Down

0 comments on commit ba3af59

Please sign in to comment.