From 0973ad2a1c365ef847a3925f0eebcd23358d36f6 Mon Sep 17 00:00:00 2001 From: Nikhil Raj <125121367+hustlernik@users.noreply.github.com> Date: Sun, 29 Dec 2024 03:37:59 +0530 Subject: [PATCH] [REFACTOR] CSS for CustomRecurrenceModal.tsx (#3009) * refactor css for CustomRecurrenceModal.tsx * css variable * Update src/style/app.module.css Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update src/style/app.module.css Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .../CustomRecurrenceModal.module.css | 59 ------------- .../CustomRecurrenceModal.tsx | 6 +- src/style/app.module.css | 82 +++++++++++++++++++ 3 files changed, 86 insertions(+), 61 deletions(-) delete mode 100644 src/components/RecurrenceOptions/CustomRecurrenceModal.module.css diff --git a/src/components/RecurrenceOptions/CustomRecurrenceModal.module.css b/src/components/RecurrenceOptions/CustomRecurrenceModal.module.css deleted file mode 100644 index 5fe5d33c47..0000000000 --- a/src/components/RecurrenceOptions/CustomRecurrenceModal.module.css +++ /dev/null @@ -1,59 +0,0 @@ -.titlemodal { - color: #707070; - font-weight: 600; - font-size: 20px; - margin-bottom: 20px; - padding-bottom: 5px; - border-bottom: 3px solid #31bb6b; - width: 65%; -} - -.recurrenceRuleNumberInput { - width: 70px; -} - -.recurrenceRuleDateBox { - width: 70%; -} - -.recurrenceDayButton { - width: 33px; - height: 33px; - border: 1px solid var(--bs-gray); - cursor: pointer; - transition: background-color 0.3s; - display: inline-flex; - justify-content: center; - align-items: center; - margin-right: 0.5rem; - border-radius: 50%; -} - -.recurrenceDayButton:hover { - background-color: var(--bs-gray); -} - -.recurrenceDayButton.selected { - background-color: var(--bs-primary); - border-color: var(--bs-primary); - color: var(--bs-white); -} - -.recurrenceDayButton span { - color: var(--bs-gray); - padding: 0.25rem; - text-align: center; -} - -.recurrenceDayButton:hover span { - color: var(--bs-white); -} - -.recurrenceDayButton.selected span { - color: var(--bs-white); -} - -.recurrenceRuleSubmitBtn { - margin-left: 82%; - padding: 7px 15px; -} diff --git a/src/components/RecurrenceOptions/CustomRecurrenceModal.tsx b/src/components/RecurrenceOptions/CustomRecurrenceModal.tsx index deb1a03dab..aa85cc44ed 100644 --- a/src/components/RecurrenceOptions/CustomRecurrenceModal.tsx +++ b/src/components/RecurrenceOptions/CustomRecurrenceModal.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useState } from 'react'; import { Button, Dropdown, Form, FormControl, Modal } from 'react-bootstrap'; -import styles from './CustomRecurrenceModal.module.css'; +import styles from '../../style/app.module.css'; import { DatePicker } from '@mui/x-date-pickers'; import { Days, @@ -153,7 +153,9 @@ const CustomRecurrenceModal: React.FC = ({ centered > -

{t('customRecurrence')}

+

+ {t('customRecurrence')} +