Skip to content

Commit e95cb31

Browse files
committed
style(CPDashboard): remove inline stylings for the DatePicker
1 parent ad26aee commit e95cb31

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/components/CommunityPortal/CPDashboard.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,7 @@ export function CPDashboard() {
219219
id="ending-after"
220220
className={styles['date-filter']}
221221
/>
222-
{dateError && (
223-
<p className="date-error-message" style={{ color: 'red', marginTop: '5px' }}>
224-
{dateError}
225-
</p>
226-
)}
222+
{dateError && <p className={styles['date-error-message']}>{dateError}</p>}
227223
</div>
228224
</div>
229225

src/components/CommunityPortal/CPDashboard.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@
274274
justify-content: center;
275275
align-items: center;
276276
}
277+
278+
.date-error-message {
279+
color: red;
280+
margin-top: 5px;
281+
}
282+
277283
/* Hide browser's built-in clear icon for search inputs */
278284
.dashboard-search-input::-webkit-search-cancel-button,
279285
.dashboard-search-input::-webkit-search-decoration,

0 commit comments

Comments
 (0)