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

#2883 Refactor CSS files in miscellaneous components #3116

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
9dbc496
src/components/UpdateSession/UpdateSession.css
pranavnathe Jan 1, 2025
d83a138
src/components/UserListCard/UserListCard.module.css
pranavnathe Jan 1, 2025
fafffdc
Refactor src/components/UserPasswordUpdate/UserPasswordUpdate.module.css
pranavnathe Jan 1, 2025
27b17ef
src/components/Venues/VenueModal.module.css
pranavnathe Jan 1, 2025
799e929
src/components/EventCalendar/YearlyEventCalender.module.css
pranavnathe Jan 1, 2025
5107531
Refactor src/components/AgendaItems/AgendaItemsContainer.module.css
pranavnathe Jan 1, 2025
dc90f64
Refactor src/components/AddOn/core/AddOnStore/AddOnStore.module.css
pranavnathe Jan 1, 2025
78253b1
Refactor src/components/Advertisements/Advertisements.module.css
pranavnathe Jan 1, 2025
c96ac35
Refactor src/components/Advertisements/core/AdvertisementRegister/Adv…
pranavnathe Jan 1, 2025
37bd59b
Refactor src/components/EventCalendar/EventCalendar.module.css
pranavnathe Jan 1, 2025
a5ef7a9
Refactor src/components/EventListCard/EventListCard.module.css
pranavnathe Jan 1, 2025
6575739
Refactor CSS OrgPostCard.module.css && fixed eslint destructuring pro…
pranavnathe Jan 1, 2025
9c9a9cc
Refactor src/components/OrgSettings/ActionItemCategories/OrgActionIte…
pranavnathe Jan 1, 2025
b878dd3
CSS fix
pranavnathe Jan 2, 2025
44ba86d
consolidating button styles in greenregbtnUserPasswordUpdate
pranavnathe Jan 2, 2025
de409b6
CSS bugfixes
pranavnathe Jan 2, 2025
64ebf87
Replaced hardcoded color values to CSS variables
pranavnathe Jan 2, 2025
0d75bef
removed role from .calendar__weekdays and .calendar__days
pranavnathe Jan 2, 2025
556efbe
refactor: extract DeletePostModal from OrgPostCard to fix file-length…
pranavnathe Jan 5, 2025
a75afae
TSDoc added for src/components/OrgPostCard/DeletePostModal.tsx
pranavnathe Jan 5, 2025
8d8f1d4
removed duplicate cursor property
pranavnathe Jan 5, 2025
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
72 changes: 0 additions & 72 deletions src/components/AddOn/core/AddOnStore/AddOnStore.module.css

This file was deleted.

35 changes: 9 additions & 26 deletions src/components/AddOn/core/AddOnStore/AddOnStore.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import styles from './AddOnStore.module.css';
import styles from '../../../../style/app.module.css';
import AddOnEntry from '../AddOnEntry/AddOnEntry';
import { useQuery } from '@apollo/client';
import { PLUGIN_GET } from 'GraphQl/Queries/Queries'; // PLUGIN_LIST
Expand Down Expand Up @@ -122,36 +122,19 @@ function addOnStore(): JSX.Element {

return (
<>
<Row
className=""
style={{
backgroundColor: 'white',
margin: '2px',
padding: '10px',
borderRadius: '20px',
}}
>
<Col
style={{
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
}}
>
<div className={styles.input}>
<Row className={styles.containerAddOnStore}>
<Col className={styles.colAddOnStore}>
<div className={styles.inputAddOnStore}>
<Form.Control
type="name"
id="searchname"
className={styles.actioninput}
className={styles.inputField}
placeholder={t('searchName')}
autoComplete="off"
required
onChange={(e): void => setSearchText(e.target.value)}
/>
<Button
className={`position-absolute z-10 bottom-0 end-0 d-flex justify-content-center align-items-center `}
style={{ marginBottom: '10px' }}
>
<Button className={styles.searchButton}>
<Search />
</Button>
</div>
Expand Down Expand Up @@ -199,7 +182,7 @@ function addOnStore(): JSX.Element {
title={t('available')}
style={{ backgroundColor: 'white' }}
>
<div className={styles.justifysp}>
<div className={styles.justifyspAddOnStore}>
{(() => {
const filteredPlugins = filterPlugins(
data?.getPlugins || [],
Expand All @@ -211,7 +194,7 @@ function addOnStore(): JSX.Element {
}

return (
<div className={styles.justifysp}>
<div className={styles.justifyspAddOnStore}>
{filteredPlugins.map((plug, i) => (
<div className={styles.cardGridItem} key={i}>
<AddOnEntry
Expand All @@ -236,7 +219,7 @@ function addOnStore(): JSX.Element {
title={t('install')}
data-testid="installed-tab"
>
<div className={styles.justifysp}>
<div className={styles.justifyspAddOnStore}>
{(() => {
const installedPlugins = (data?.getPlugins || []).filter(
(plugin) => !plugin.uninstalledOrgs.includes(orgId ?? ''),
Expand Down
47 changes: 0 additions & 47 deletions src/components/Advertisements/Advertisements.module.css

This file was deleted.

27 changes: 9 additions & 18 deletions src/components/Advertisements/Advertisements.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react';
import styles from './Advertisements.module.css';
import styles from '../../style/app.module.css';
import { useQuery } from '@apollo/client';
import { ORGANIZATION_ADVERTISEMENT_LIST } from 'GraphQl/Queries/Queries';
import { Button, Col, Form, Row, Tab, Tabs } from 'react-bootstrap';
Expand Down Expand Up @@ -79,29 +79,20 @@ export default function advertisements(): JSX.Element {
return (
<>
<Row data-testid="advertisements">
<Col col={8} style={{ backgroundColor: 'white', borderRadius: '20px' }}>
<div className={styles.justifysp}>
<Col
style={{
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
padding: '10px',
}}
>
<div className={styles.input}>
<Col col={8} className={styles.containerAdvertisements}>
<div className={styles.justifyspAdvertisements}>
<Col className={styles.colAdvertisements}>
<div className={styles.inputAdvertisements}>
<Form.Control
type="name"
id="searchname"
className={styles.actioninput}
className={styles.inputField}
placeholder={'Search..'}
autoComplete="off"
required
// onChange={(e): void => setSearchText("search")}
/>
<Button
className={`position-absolute z-10 bottom-0 end-0 d-flex justify-content-center align-items-center `}
>
<Button className={styles.searchButton}>
<Search />
</Button>
</div>
Expand Down Expand Up @@ -145,7 +136,7 @@ export default function advertisements(): JSX.Element {
orgAdvertisementListData?.organizations[0].advertisements
.pageInfo.hasNextPage ?? false
}
className={styles.listBox}
className={styles.listBoxAdvertisements}
data-testid="organizations-list"
endMessage={
advertisements.filter(
Expand Down Expand Up @@ -221,7 +212,7 @@ export default function advertisements(): JSX.Element {
orgAdvertisementListData?.organizations[0].advertisements
.pageInfo.hasNextPage ?? false
}
className={styles.listBox}
className={styles.listBoxAdvertisements}
data-testid="organizations-list"
endMessage={
advertisements.filter(
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,10 @@ function advertisementRegister({
}}
/>
{formState.advertisementMedia && (
<div className={styles.preview} data-testid="mediaPreview">
<div
className={styles.previewAdvertisementRegister}
data-testid="mediaPreview"
>
{formState.advertisementMedia.includes('video') ? (
<video
muted
Expand All @@ -332,7 +335,7 @@ function advertisementRegister({
<img src={formState.advertisementMedia} />
)}
<button
className={styles.closeButton}
className={styles.closeButtonAdvertisementRegister}
onClick={(e): void => {
e.preventDefault();
setFormState({
Expand Down Expand Up @@ -405,7 +408,7 @@ function advertisementRegister({
<Button
variant="secondary"
onClick={handleClose}
className={styles.closeButton}
className={styles.closeButtonAdvertisementRegister}
data-testid="addonclose"
>
{tCommon('close')}
Expand Down
Loading
Loading