Skip to content

Commit

Permalink
Updated memberList & memberDetails formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
janinapaasila authored Jan 25, 2025
1 parent e483285 commit 94dfe51
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/admin/addMember/addMemberView.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const addMemberView = ({
type="checkbox"
onChange={handleInputChange}
name="accessRights"
label="24/7 kulkuoikeudet"
label="Varaston/roskisten kulkuoikeudet"
/>
</Form.Group>
<Form.Group>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const MemberDetailsAdminView = ({
</tr>
<tr>
<th>Kulkuoikeudet</th>
<td>{accessRights ? '24/7' : 'Ma-Su 07:00-21:00'}</td>
<td>{accessRights ? 'Varasto/roskikset' : 'Vain toimisto'}</td>
</tr>
<tr>
<th>Jäsenyys hyväksytty</th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const MemberUpdateAdminView = ({
checked={accessRights}
onChange={handleInputChange}
name="accessRights"
label="24/7 kulkuoikeudet"
label="Varaston/roskisten kulkuoikeudet"
/>
</Form.Group>
<Form.Group>
Expand Down
4 changes: 2 additions & 2 deletions src/components/admin/memberList/memberList.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
cursor: pointer;
}

@media only screen and (max-width: 1450px) {
@media only screen and (max-width: 1320px) {
.memberlistTable {
width: 1480px !important;
width: 1340px !important;
}
}

Expand Down
25 changes: 20 additions & 5 deletions src/components/admin/memberList/memberListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ const columns = [
dataField: 'utuAccount',
text: 'UTU',
sort: true,
headerStyle: {
width: '90px',
},
align: 'center',
headerAlign: 'center',
},
Expand All @@ -100,6 +103,9 @@ const columns = [
dataField: 'hometown',
text: 'Kotikunta',
sort: true,
headerStyle: {
width: '110px',
},
align: 'center',
headerAlign: 'center',
},
Expand Down Expand Up @@ -131,7 +137,7 @@ const columns = [
text: 'TIVIA',
sort: true,
headerStyle: {
width: '90px',
width: '80px',
},
align: 'center',
headerAlign: 'center',
Expand All @@ -153,18 +159,21 @@ const columns = [
dataField: 'role',
text: 'Rooli',
sort: true,
headerStyle: {
width: '110px',
},
align: 'center',
headerAlign: 'center',
formatter: roleSwitchCase,
},
{
dataField: 'accessRights',
text: '24/7',
text: 'Varasto',
sort: true,
align: 'center',
headerAlign: 'center',
headerStyle: {
width: '80px',
width: '110px',
},
formatter: (cell, row, rowIndex, extraData) => (
<div>
Expand All @@ -184,6 +193,9 @@ const columns = [
dataField: 'membershipStarts',
text: 'Alkanut',
sort: true,
headerStyle: {
width: '100px',
},
align: 'center',
headerAlign: 'center',
formatter: (cell, row, rowIndex, extraData) => (
Expand All @@ -200,18 +212,21 @@ const columns = [
dataField: 'membershipEnds',
text: 'Päättyy',
sort: true,
headerStyle: {
width: '100px',
},
align: 'center',
headerAlign: 'center',
formatter: membershipEndsFormatter,
},
{
dataField: 'accepted',
text: 'Hyväksytty',
text: 'Jäsen',
sort: true,
align: 'center',
headerAlign: 'center',
headerStyle: {
width: '130px',
width: '80px',
},
formatter: (cell, row, rowIndex, extraData) => (
<div>
Expand Down

0 comments on commit 94dfe51

Please sign in to comment.