Skip to content

Commit

Permalink
registration page reform
Browse files Browse the repository at this point in the history
closes: #951
  • Loading branch information
caxtonacollins committed Jan 27, 2025
1 parent a8b290c commit f9af45c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 7 additions & 3 deletions components/UI/iconsComponents/icons/closeIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import React, { FunctionComponent } from "react";

const CloseIcon: FunctionComponent = () => {
return (
<svg
interface CloseIconProps {
onClick?: () => void;
}

const CloseIcon: FunctionComponent<CloseIconProps> = ({ onClick }) => {
return (<svg
onClick={onClick}
xmlns="http://www.w3.org/2000/svg"
width="16"
height="17"
Expand Down
6 changes: 5 additions & 1 deletion components/domains/steps/userInfoForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,15 @@ const UserInfoForm: FunctionComponent<UserInfoFormProps> = ({
);
};

const handleClose = () => {
window.history.back()
};

return (
<div className={styles.container}>
<div className={styles.card}>
<div className={styles.closeIcon}>
<CloseIcon />
<CloseIcon onClick={handleClose} />
</div>
<div className={styles.form}>
<div className="flex flex-col items-center gap-4 self-stretch">
Expand Down

0 comments on commit f9af45c

Please sign in to comment.