Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Create post modal #992

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: Create post modal
TusharKumawat1 committed Oct 14, 2023
commit 932d8720953e2bdb37026c975ea48310fbc5195d
30 changes: 24 additions & 6 deletions src/screens/OrgPost/OrgPost.module.css
Original file line number Diff line number Diff line change
@@ -190,22 +190,40 @@
border-bottom: 3px solid #31bb6b;
width: 40%;
}
.postinfo {
height: 80px;
}

.postinfo {
height: 80px;
width: 100%;
height: 100px;
margin-bottom: 20px;
padding: 5px;
border-radius: 5px;
border-color: #aaaaaa;
}
.postinfo:focus {
outline: 2px solid #31bb6b;
}
.orgphoto {
display: block;
}
.createPostBtn {
width: 100%;
}
.closeBtn {
width: 16px;
height: 35px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
/* margin-top: px; */
}
.titlemodal {
color: #707070;
font-weight: 600;
font-size: 20px;
margin-bottom: 20px;
margin-block: 10px;
padding-bottom: 5px;
border-bottom: 3px solid #31bb6b;
width: 65%;
}
.cancel > i {
margin-top: 5px;
13 changes: 11 additions & 2 deletions src/screens/OrgPost/OrgPost.tsx
Original file line number Diff line number Diff line change
@@ -266,7 +266,11 @@ function orgPost(): JSX.Element {
<Modal show={postmodalisOpen}>
<Modal.Header>
<p className={styles.titlemodal}>{t('postDetails')}</p>
<Button variant="danger" onClick={hideInviteModal}>
<Button
variant="danger"
onClick={hideInviteModal}
className={styles.closeBtn}
>
<i className="fa fa-times" data-testid="closePostModalBtn"></i>
</Button>
</Modal.Header>
@@ -332,7 +336,12 @@ function orgPost(): JSX.Element {
multiple={false}
//onChange=""
/>
<Button type="submit" variant="success" data-testid="createPostBtn">
<Button
type="submit"
variant="success"
data-testid="createPostBtn"
className={styles.createPostBtn}
>
<i className="fa fa-plus"></i> {t('addPost')}
</Button>
</Form>