Skip to content

Commit 574441d

Browse files
Merge pull request #4674 from OneCommunityGlobal/Akshith-prdashboard-fix-cssfile
Akshith - PR Admin Dashboard: Change .css to .module.css in /pr-dashboard
2 parents 25c254a + c8ac47b commit 574441d

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/components/PRDashboard.jsx renamed to src/components/PRDashboard/PRDashboard.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import hasPermission from '~/utils/permissions';
2+
import styles from './PRDashboard.module.css';
23

34
function PRDashboard({ authUser }) {
45
if (!hasPermission('accessPRTeamDashboard', authUser?.permissions)) {
@@ -7,7 +8,7 @@ function PRDashboard({ authUser }) {
78

89
return (
910
<div>
10-
<h1>PR Team Dashboard</h1>
11+
<h1 className={`${styles.prdashcontainer}`}>PR Team Dashboard</h1>
1112
{/* actual dashboard content */}
1213
</div>
1314
);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.prdashcontainer {
2+
padding: 2rem;
3+
}

src/routes.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Timelog from './components/Timelog';
2020
import UserProfileEdit from './components/UserProfile/UserProfileEdit';
2121
import EditableInfoModal from './components/UserProfile/EditableModal/EditableInfoModal';
2222
import RoleInfoCollections from './components/UserProfile/EditableModal/RoleInfoModal';
23-
import PRDashboard from './components/PRDashboard';
23+
import PRDashboard from './components/PRDashboard/PRDashboard';
2424
import ApplicationTimeChartPage from './components/ApplicationTimeChart';
2525
import ApplicantsChart from './components/ApplicantsChart';
2626
import ApplicationAnalyticsContainer from './components/ApplicationAnalytics';

0 commit comments

Comments
 (0)