Skip to content

Commit

Permalink
Merge branch 'main' into mta-1721-3
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 authored Feb 16, 2024
2 parents 4adcf23 + 8a630d9 commit 1761bda
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
import { useLegacyFilterState } from "@app/hooks/useLegacyFilterState";
import { useHistory } from "react-router-dom";
import { ItemTagLabel } from "../../../../components/labels/item-tag-label/item-tag-label";
import { capitalizeFirstLetter } from "@app/utils/utils";

interface TagWithSource extends Tag {
source?: string;
Expand Down Expand Up @@ -216,7 +217,7 @@ export const ApplicationTags: React.FC<ApplicationTagsProps> = ({
component="h3"
className={`${spacing.mtSm} ${spacing.mbSm} ${textStyles.fontSizeMd}`}
>
{source === "" ? "Manual" : source}
{source === "" ? "Manual" : capitalizeFirstLetter(source)}
</Text>
</TextContent>
{Array.from(tagCategoriesInThisSource).map((tagCategory) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,14 @@ export const WaveStakeholdersTable: React.FC<IWaveStakeholdersTableProps> = ({
<Toolbar {...toolbarProps}>
<ToolbarContent>
<ToolbarItem {...paginationToolbarItemProps}>
<SimplePagination
idPrefix={`expanded-migration-wave-${migrationWave.name}-apps-table`}
isTop
paginationProps={paginationProps}
/>
{migrationWave.allStakeholders.length > 9 && (
<SimplePagination
idPrefix={`expanded-migration-wave-${migrationWave.name}-apps-table`}
isTop
paginationProps={paginationProps}
isCompact
/>
)}
</ToolbarItem>
</ToolbarContent>
</Toolbar>
Expand Down Expand Up @@ -116,6 +119,14 @@ export const WaveStakeholdersTable: React.FC<IWaveStakeholdersTableProps> = ({
</Tbody>
</ConditionalTableBody>
</Table>
{migrationWave.allStakeholders.length > 9 && (
<SimplePagination
idPrefix={`expanded-migration-wave-${migrationWave.name}-apps-table`}
isTop={false}
paginationProps={paginationProps}
isCompact
/>
)}
</>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,14 @@ export const WaveApplicationsTable: React.FC<IWaveApplicationsTableProps> = ({
<Toolbar {...toolbarProps}>
<ToolbarContent>
<ToolbarItem {...paginationToolbarItemProps}>
<SimplePagination
idPrefix={`expanded-migration-wave-${migrationWave.name}-apps-table`}
isTop
paginationProps={paginationProps}
/>
{migrationWave.fullApplications.length > 9 && (
<SimplePagination
idPrefix={`expanded-migration-wave-${migrationWave.name}-apps-table`}
isTop
paginationProps={paginationProps}
isCompact
/>
)}
</ToolbarItem>
</ToolbarContent>
</Toolbar>
Expand Down Expand Up @@ -155,6 +158,14 @@ export const WaveApplicationsTable: React.FC<IWaveApplicationsTableProps> = ({
</Tbody>
</ConditionalTableBody>
</Table>
{migrationWave.fullApplications.length > 9 && (
<SimplePagination
idPrefix={`expanded-migration-wave-${migrationWave.name}-apps-table`}
isTop={false}
paginationProps={paginationProps}
isCompact
/>
)}
</>
);
};
3 changes: 3 additions & 0 deletions client/src/app/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,6 @@ export const collapseSpacesAndCompare = (

return a.localeCompare(b, locale);
};

export const capitalizeFirstLetter = (str: string) =>
str.charAt(0).toUpperCase() + str.slice(1);

0 comments on commit 1761bda

Please sign in to comment.