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

Commit 341f9de

Browse files
committed
Deleted Nested Container
1 parent ec918fe commit 341f9de

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/components/basicElements/Login.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function LoginInteractionArea(props: LoginInputInterface) {
7474
errorMessage,
7575
} = props
7676
return (
77-
<Container fluid className="login-container">
77+
<div className="login-container pr-1 pl-1 mr-auto ml-auto">
7878
<LoginHeader/>
7979
<LoginInput
8080
handleSubmit={handleSubmit}
@@ -88,13 +88,13 @@ export function LoginInteractionArea(props: LoginInputInterface) {
8888
setStayLoggedIn={setStayLoggedIn}
8989
errorMessage={errorMessage}
9090
/>
91-
</Container>
91+
</div>
9292
)
9393
}
9494

9595
export function LoginHeader() {
9696
return (
97-
<Container className="login-intro">
97+
<div className="login-intro">
9898
<Row className="justify-content-md-center">
9999
<Image rounded src={logo} height="200px" width="auto"/>
100100
</Row>
@@ -104,7 +104,7 @@ export function LoginHeader() {
104104
<Row className="justify-content-md-center">
105105
<h2>Be welcome at FileFighter</h2>
106106
</Row>
107-
</Container>
107+
</div>
108108
)
109109
}
110110

@@ -122,10 +122,10 @@ export function LoginInput(props: LoginInputInterface) {
122122
} = props
123123

124124
return (
125-
<Container className="login-input">
125+
<div>
126126
<Row className="mt-4 justify-content-md-center">
127-
<Col>
128-
<Form onSubmit={handleSubmit}>
127+
<Col className="login-input">
128+
<Form onSubmit={handleSubmit} >
129129
<Form.Group controlId="formBasicUsername">
130130
<Form.Control placeholder="Username" value={username}
131131
onChange={event => setUsername(event.target.value)}/>
@@ -160,7 +160,7 @@ export function LoginInput(props: LoginInputInterface) {
160160
</Form>
161161
</Col>
162162
</Row>
163-
</Container>
163+
</div>
164164
)
165165
}
166166

src/style/helpers.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ root {
3939
padding-top: 15px
4040
}
4141

42-
.login-input .row:first-child .col {
42+
.login-input {
4343
max-width: 450px;
4444
}

0 commit comments

Comments
 (0)