Skip to content

Commit

Permalink
r
Browse files Browse the repository at this point in the history
  • Loading branch information
Monique Cheng committed Apr 21, 2024
1 parent 1f4afb5 commit d6d6ff7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/api/supabase/queries/product_queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export async function fetchProductByID(productId: number): Promise<Product> {
if (error) {
throw new Error(`Error fetching product: ${error.message}`);
}

return product;
}

Expand Down
17 changes: 7 additions & 10 deletions src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,13 @@ export default function App() {
window.location.href = '/storefront';
}
};

async function applyFilter(
e: React.KeyboardEvent<HTMLButtonElement>,
) {
const keypressed = e.code;
if (keypressed === 'Enter') {
handleLogin();
}

async function applyFilter(e: React.KeyboardEvent<HTMLButtonElement>) {
const keypressed = e.code;
if (keypressed === 'Enter') {
handleLogin();
}
}


return (
<Fullscreen>
Expand Down Expand Up @@ -89,7 +86,7 @@ export default function App() {
)}

{errorMessage && <ErrorMessage>{errorMessage}</ErrorMessage>}
<Button style={{ cursor: 'pointer' }} onClick={handleLogin} >
<Button style={{ cursor: 'pointer' }} onClick={handleLogin}>
<Body1>Log In</Body1>
</Button>
</LoginContent>
Expand Down
2 changes: 1 addition & 1 deletion src/components/LoginFormFolder/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function LoginForm(props: {
isError: boolean;
showPassword: boolean;
}) {
const { isError, changeUserName, changePassword, showPassword} = props;
const { isError, changeUserName, changePassword, showPassword } = props;
return (
<div>
<InputFields
Expand Down

0 comments on commit d6d6ff7

Please sign in to comment.