Skip to content

Commit

Permalink
Lint error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
git-init-priyanshu committed Mar 6, 2024
1 parent c4ed40a commit 9e383ce
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
9 changes: 8 additions & 1 deletion src/screens/CommunityProfile/CommunityProfile.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.card {
width: max-content;
width: fit-content;
}

.cardHeader {
Expand Down Expand Up @@ -32,3 +32,10 @@
.socialInput {
height: 2.5rem;
}

@media (max-width: 520px) {
.btn {
flex-direction: column;
justify-content: center;
}
}
26 changes: 11 additions & 15 deletions src/screens/CommunityProfile/CommunityProfile.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import SuperAdminScreen from 'components/SuperAdminScreen/SuperAdminScreen';
import { useTranslation } from 'react-i18next';
import { Button, Card, Form } from 'react-bootstrap';
import { useMutation } from '@apollo/client';
Expand Down Expand Up @@ -70,10 +69,6 @@ const CommunityProfile = (): JSX.Element => {
};

return (
// <SuperAdminScreen
// title={t('communityProfile')}
// screenName="Community Profile"
// >
<Card border="0" className={`${styles.card} "rounded-4 my-4 shadow-sm"`}>
<div className={styles.cardHeader}>
<div className={styles.cardTitle}>{t('editProfile')}</div>
Expand Down Expand Up @@ -143,7 +138,7 @@ const CommunityProfile = (): JSX.Element => {
</Form.Group>
<Form.Group>
<Form.Label className={styles.formLabel}>{t('social')}</Form.Label>
<div className="mb-3 d-flex align-items-center gap-sm-3">
<div className="mb-3 d-flex align-items-center gap-3">
<img src={FacebookLogo} alt="Facebook Logo" />
<Form.Control
type="url"
Expand All @@ -158,7 +153,7 @@ const CommunityProfile = (): JSX.Element => {
required
/>
</div>
<div className="mb-3 d-flex align-items-center gap-sm-3">
<div className="mb-3 d-flex align-items-center gap-3">
<img src={InstagramLogo} alt="Instagram Logo" />
<Form.Control
type="url"
Expand All @@ -173,7 +168,7 @@ const CommunityProfile = (): JSX.Element => {
required
/>
</div>
<div className="mb-3 d-flex align-items-center gap-sm-3">
<div className="mb-3 d-flex align-items-center gap-3">
<img src={TwitterLogo} alt="Twitter Logo" />
<Form.Control
type="url"
Expand All @@ -188,7 +183,7 @@ const CommunityProfile = (): JSX.Element => {
required
/>
</div>
<div className="mb-3 d-flex align-items-center gap-sm-3">
<div className="mb-3 d-flex align-items-center gap-3">
<img src={LinkedInLogo} alt="LinkedIn Logo" />
<Form.Control
type="url"
Expand All @@ -203,7 +198,7 @@ const CommunityProfile = (): JSX.Element => {
required
/>
</div>
<div className="mb-3 d-flex align-items-center gap-sm-3">
<div className="mb-3 d-flex align-items-center gap-3">
<img src={GithubLogo} alt="Github Logo" />
<Form.Control
type="url"
Expand All @@ -218,7 +213,7 @@ const CommunityProfile = (): JSX.Element => {
required
/>
</div>
<div className="mb-3 d-flex align-items-center gap-sm-3">
<div className="mb-3 d-flex align-items-center gap-3">
<img src={YoutubeLogo} alt="Youtube Logo" />
<Form.Control
type="url"
Expand All @@ -233,7 +228,7 @@ const CommunityProfile = (): JSX.Element => {
required
/>
</div>
<div className="mb-3 d-flex align-items-center gap-sm-3">
<div className="mb-3 d-flex align-items-center gap-3">
<img src={RedditLogo} alt="Reddit Logo" />
<Form.Control
type="url"
Expand All @@ -248,7 +243,7 @@ const CommunityProfile = (): JSX.Element => {
required
/>
</div>
<div className="mb-3 d-flex align-items-center gap-sm-3">
<div className="mb-3 d-flex align-items-center gap-3">
<img src={SlackLogo} alt="Slack Logo" />
<Form.Control
type="url"
Expand All @@ -264,7 +259,9 @@ const CommunityProfile = (): JSX.Element => {
/>
</div>
</Form.Group>
<div className="d-flex justify-content-end gap-sm-3 my-3">
<div
className={`${styles.btn} d-flex justify-content-end gap-3 my-3`}
>
<Button
variant="outline-success"
onClick={() =>
Expand All @@ -290,7 +287,6 @@ const CommunityProfile = (): JSX.Element => {
</Form>
</Card.Body>
</Card>
// </SuperAdminScreen>
);
};

Expand Down

0 comments on commit 9e383ce

Please sign in to comment.