Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pagination to management contacts. Style updates to pagination in… #4126

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions source/frontend/src/components/Table/PageSizeSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const TablePageSizeSelector: React.FC<ITablePageSizeSelectorProps> = ({
<Menu options={pageSizeOptions} alignTop={alignTop}>
<div className="d-flex">
<StyledText>Show</StyledText>
<StyledInput size="sm" value={`${selected}`} type="number" disabled />
<StyledInput defaultValue={`${selected}`} type="number" />
<StyledText>Entries</StyledText>
</div>
</Menu>
Expand All @@ -48,10 +48,13 @@ const StyledText = styled.span`
`;

const StyledInput = styled(Form.Control)`
width: 7.5rem;
min-width: 5rem;
max-width: 5rem;
margin-left: 1rem;
margin-right: 1rem;
&:disabled {
background: white;
}
text-align: center;
padding: 0;
`;
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ exports[`Page size selector > matches snapshot 1`] = `
}

.c1 {
width: 7.5rem;
min-width: 5rem;
max-width: 5rem;
margin-left: 1rem;
margin-right: 1rem;
text-align: center;
padding: 0;
}

.c1:disabled {
Expand All @@ -35,8 +38,7 @@ exports[`Page size selector > matches snapshot 1`] = `
Show
</span>
<input
class="c1 form-control form-control-sm"
disabled=""
class="c1 form-control"
type="number"
value="10"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,12 @@ exports[`Generic table component > matches snapshot 1`] = `
}

.c1 {
width: 7.5rem;
min-width: 5rem;
max-width: 5rem;
margin-left: 1rem;
margin-right: 1rem;
text-align: center;
padding: 0;
}

.c1:disabled {
Expand Down Expand Up @@ -252,8 +255,7 @@ exports[`Generic table component > matches snapshot 1`] = `
Show
</span>
<input
class="c1 form-control form-control-sm"
disabled=""
class="c1 form-control"
type="number"
value="10"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1125,9 +1125,12 @@ exports[`Contact Search Results Table > matches snapshot 1`] = `
}

.c2 {
width: 7.5rem;
min-width: 5rem;
max-width: 5rem;
margin-left: 1rem;
margin-right: 1rem;
text-align: center;
padding: 0;
}

.c2:disabled {
Expand Down Expand Up @@ -1171,8 +1174,7 @@ exports[`Contact Search Results Table > matches snapshot 1`] = `
Show
</span>
<input
class="c2 form-control form-control-sm"
disabled=""
class="c2 form-control"
type="number"
value="10"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,12 @@ exports[`Manage access requests > Snapshot matches 1`] = `
}

.c6 {
width: 7.5rem;
min-width: 5rem;
max-width: 5rem;
margin-left: 1rem;
margin-right: 1rem;
text-align: center;
padding: 0;
}

.c6:disabled {
Expand Down Expand Up @@ -732,8 +735,7 @@ exports[`Manage access requests > Snapshot matches 1`] = `
Show
</span>
<input
class="c6 form-control form-control-sm"
disabled=""
class="c6 form-control"
type="number"
value="10"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,12 @@ exports[`Contact List View > matches snapshot 1`] = `
}

.c21 {
width: 7.5rem;
min-width: 5rem;
max-width: 5rem;
margin-left: 1rem;
margin-right: 1rem;
text-align: center;
padding: 0;
}

.c21:disabled {
Expand Down Expand Up @@ -1236,8 +1239,7 @@ exports[`Contact List View > matches snapshot 1`] = `
Show
</span>
<input
class="c21 form-control form-control-sm"
disabled=""
class="c21 form-control"
type="number"
value="10"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,12 @@ exports[`Disposition search results table > matches snapshot 1`] = `
}

.c1 {
width: 7.5rem;
min-width: 5rem;
max-width: 5rem;
margin-left: 1rem;
margin-right: 1rem;
text-align: center;
padding: 0;
}

.c1:disabled {
Expand Down Expand Up @@ -506,8 +509,7 @@ exports[`Disposition search results table > matches snapshot 1`] = `
Show
</span>
<input
class="c1 form-control form-control-sm"
disabled=""
class="c1 form-control"
type="number"
value="10"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,12 @@ exports[`Disposition List View > matches snapshot 1`] = `
}

.c16 {
width: 7.5rem;
min-width: 5rem;
max-width: 5rem;
margin-left: 1rem;
margin-right: 1rem;
text-align: center;
padding: 0;
}

.c16:disabled {
Expand Down Expand Up @@ -1182,8 +1185,7 @@ exports[`Disposition List View > matches snapshot 1`] = `
Show
</span>
<input
class="c16 form-control form-control-sm"
disabled=""
class="c16 form-control"
type="number"
value="10"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,12 @@ exports[`Document Results Table > matches snapshot 1`] = `
}

.c1 {
width: 7.5rem;
min-width: 5rem;
max-width: 5rem;
margin-left: 1rem;
margin-right: 1rem;
text-align: center;
padding: 0;
}

.c1:disabled {
Expand Down Expand Up @@ -507,8 +510,7 @@ exports[`Document Results Table > matches snapshot 1`] = `
Show
</span>
<input
class="c1 form-control form-control-sm"
disabled=""
class="c1 form-control"
type="number"
value="10"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,12 @@ exports[`Document List View > renders as expected 1`] = `
}

.c13 {
width: 7.5rem;
min-width: 5rem;
max-width: 5rem;
margin-left: 1rem;
margin-right: 1rem;
text-align: center;
padding: 0;
}

.c13:disabled {
Expand Down Expand Up @@ -936,8 +939,7 @@ exports[`Document List View > renders as expected 1`] = `
Show
</span>
<input
class="c13 form-control form-control-sm"
disabled=""
class="c13 form-control"
type="number"
value="10"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,12 @@ exports[`Lease Search Results Table > matches snapshot 1`] = `
}

.c1 {
width: 7.5rem;
min-width: 5rem;
max-width: 5rem;
margin-left: 1rem;
margin-right: 1rem;
text-align: center;
padding: 0;
}

.c1:disabled {
Expand Down Expand Up @@ -547,8 +550,7 @@ exports[`Lease Search Results Table > matches snapshot 1`] = `
Show
</span>
<input
class="c1 form-control form-control-sm"
disabled=""
class="c1 form-control"
type="number"
value="10"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,12 @@ exports[`Activities list view > renders as expected 1`] = `
}

.c9 {
width: 7.5rem;
min-width: 5rem;
max-width: 5rem;
margin-left: 1rem;
margin-right: 1rem;
text-align: center;
padding: 0;
}

.c9:disabled {
Expand Down Expand Up @@ -686,8 +689,7 @@ exports[`Activities list view > renders as expected 1`] = `
Show
</span>
<input
class="c9 form-control form-control-sm"
disabled=""
class="c9 form-control"
type="number"
value="10"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,7 @@ const PropertyContactList: React.FunctionComponent<IPropertyContactListProps> =
<Table<ApiGen_Concepts_PropertyContact>
name="PropertyContactsTable"
manualSortBy={false}
lockPageSize={true}
manualPagination={true}
hidePagination
hideToolbar
manualPagination={false}
totalItems={propertyContacts.length}
columns={createContactTableColumns(onEdit, onDelete)}
data={propertyContacts ?? []}
Expand Down
Loading
Loading