fix current warnings

This commit is contained in:
Mounir
2023-08-10 17:16:11 +02:00
parent 8624237760
commit f552e5cb69
5 changed files with 26 additions and 20 deletions

View File

@@ -38,6 +38,7 @@ const UserInputMain = styled.form`
z-index: 2;
`;
/*
const FindIpButton = styled.a`
margin: 0.5rem;
cursor: pointer;
@@ -46,6 +47,7 @@ const FindIpButton = styled.a`
color: ${colors.primary};
text-decoration: underline;
`;
*/
const ErrorMessage = styled.p`
color: ${colors.danger};
@@ -126,6 +128,8 @@ const Home = (): JSX.Element => {
if (!isError) setErrMsg('');
};
// eslint-disable-next-line
const findIpAddress = () => {
setUserInput('');
setPlaceholder('Looking up your IP...');
@@ -143,6 +147,7 @@ const Home = (): JSX.Element => {
});
};
const formSubmitEvent = (event: FormEvent<HTMLFormElement>) => {
event.preventDefault();
submit();