Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit a73b5ff

Browse files
committed
Removed nested container
1 parent bb1f588 commit a73b5ff

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

src/components/pages/User/Profile.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default function Profile(): ReactElement {
8989

9090
function DisplayProfile(): ReactElement {
9191
return (
92-
<Container className="profile-information-display p-0">
92+
<div className="profile-information-display p-0 w-100">
9393
<h2 className="h3 pb-3">
9494
{user.username}
9595
</h2>
@@ -102,14 +102,14 @@ export default function Profile(): ReactElement {
102102
})}
103103
</dd>
104104
</dl>
105-
</Container>
105+
</div>
106106
)
107107
}
108108

109109
return (
110110
<Container className="page-content">
111-
<Container fluid className=" mt-1 mb-3">
112-
<Row className="title-action">
111+
<div className="px-1 w-100 mt-1 mb-3 ">
112+
<div className="w-100 title-action">
113113
<h1 className="mr-1 h4">
114114
My Profile
115115
</h1>
@@ -119,8 +119,8 @@ export default function Profile(): ReactElement {
119119
{!isEditing && <img src={edit_svg} alt={"edit icon"} className="pr-2" />}
120120
{isEditing ? "Cancel" : "Edit"}
121121
</Button>
122-
</Row>
123-
</Container>
122+
</div>
123+
</div>
124124
{isEditing ? <EditProfile/> : <DisplayProfile/>}
125125
</Container>
126126
);

src/components/pages/User/Registration.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ export default function Registration(): ReactElement {
1313
const [alertVariant, setAlertColor] = useState<"primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark">("success");
1414
const [alertVisibility, setAlertVisibility] = useState<boolean>(false);
1515

16-
// const [newUser, setNewUser] = useState<UserInformationInterface>({
17-
// username: "",
18-
// password: "",
19-
// passwordConfirmation: ""
20-
// })
2116

2217
const registrationContainer = document.getElementById("registrationContainer")
2318
const logoSubmit = document.getElementById("logoSubmit")

0 commit comments

Comments
 (0)