Skip to content

Commit

Permalink
refactored: CSS files in src/screens/OrgSettings(fixes: #2523)
Browse files Browse the repository at this point in the history
  • Loading branch information
devender18 committed Dec 5, 2024
1 parent c80b44f commit 7ec7e52
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 59 deletions.
2 changes: 1 addition & 1 deletion src/components/OrgSettings/General/GeneralSettings.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { type FC } from 'react';
import { Card, Col, Form, Row } from 'react-bootstrap';
import styles from 'screens/OrgSettings/OrgSettings.module.css';
import styles from '../../../../src/style/app.module.css';
import OrgProfileFieldSettings from './OrgProfileFieldSettings/OrgProfileFieldSettings';
import ChangeLanguageDropDown from 'components/ChangeLanguageDropdown/ChangeLanguageDropDown';
import DeleteOrg from './DeleteOrg/DeleteOrg';
Expand Down
55 changes: 0 additions & 55 deletions src/screens/OrgSettings/OrgSettings.module.css

This file was deleted.

6 changes: 3 additions & 3 deletions src/screens/OrgSettings/OrgSettings.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import { Button, Dropdown, Row, Col } from 'react-bootstrap';
import { useTranslation } from 'react-i18next';
import styles from './OrgSettings.module.css';
import styles from '../../../src/style/app.module.css';
import OrgActionItemCategories from 'components/OrgSettings/ActionItemCategories/OrgActionItemCategories';
import OrganizationAgendaCategory from 'components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategory';
import { Navigate, useParams } from 'react-router-dom';
Expand All @@ -26,7 +26,7 @@ const settingtabs: SettingType[] = [
*
* @returns The rendered component displaying the organization settings.
*/
function orgSettings(): JSX.Element {
function OrgSettings(): JSX.Element {
// Translation hook for internationalization
const { t } = useTranslation('translation', {
keyPrefix: 'orgSettings',
Expand Down Expand Up @@ -126,4 +126,4 @@ function orgSettings(): JSX.Element {
);
}

export default orgSettings;
export default OrgSettings;
51 changes: 51 additions & 0 deletions src/style/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,57 @@ hr {
flex-direction: column;
}

.headerBtn {
box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 2px;
}

.settingsContainer {
min-height: 100vh;
}

.settingsBody {
min-height: 100vh;
margin: 2.5rem 1rem;
}

.cardHeader {
padding: 1.25rem 1rem 1rem 1rem;
border-bottom: 1px solid var(--bs-gray-200);
display: flex;
justify-content: space-between;
align-items: center;
}

.cardHeader .cardTitle {
font-size: 1.2rem;
font-weight: 600;
}

.cardBody {
min-height: 180px;
}

.cardBody .textBox {
margin: 0 0 3rem 0;
color: var(--bs-secondary);
}

.settingsTabs {
display: none;
}

@media (min-width: 577px) {
.settingsDropdown {
display: none;
}
}

@media (min-width: 577px) {
.settingsTabs {
display: block;
}
}

@media (max-width: 1020px) {
.btnsContainer {
flex-direction: column;
Expand Down

0 comments on commit 7ec7e52

Please sign in to comment.