Skip to content

Commit b9a58ce

Browse files
committed
style(CPDashboard): remove inline stylings for the DatePicker
1 parent 8050b33 commit b9a58ce

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/components/CommunityPortal/CPDashboard.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,7 @@ export function CPDashboard() {
146146
id="ending-after"
147147
className={styles['date-filter']}
148148
/>
149-
{dateError && (
150-
<p className="date-error-message" style={{ color: 'red', marginTop: '5px' }}>
151-
{dateError}
152-
</p>
153-
)}
149+
{dateError && <p className={styles['date-error-message']}>{dateError}</p>}
154150
</div>
155151
</div>
156152
<div className={styles['filter-item']}>

src/components/CommunityPortal/CPDashboard.module.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,8 @@ body {
180180
justify-content: center;
181181
align-items: center;
182182
}
183+
184+
.date-error-message {
185+
color: red;
186+
margin-top: 5px;
187+
}

0 commit comments

Comments
 (0)