Skip to content

Commit

Permalink
[Fix] Update process subtitle (#12452)
Browse files Browse the repository at this point in the history
* update process subtitle to use community name

* add aria sort to table head cells

* :xRevert "add aria sort to table head cells"

This reverts commit d182485.
  • Loading branch information
esizer authored Jan 10, 2025
1 parent 1bd0354 commit 8daecae
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions apps/web/src/pages/Pools/PoolLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
ThrowNotFound,
useAnnouncer,
} from "@gc-digital-talent/ui";
import { getLocalizedName } from "@gc-digital-talent/i18n";
import {
FragmentType,
PoolLayoutFragment,
Expand Down Expand Up @@ -58,12 +57,9 @@ export const PoolLayout_Fragment = graphql(/* GraphQL */ `
en
fr
}
team {
id
name
displayName {
en
fr
community {
name {
localized
}
}
classification {
Expand Down Expand Up @@ -132,9 +128,7 @@ const PoolHeader = ({ poolQuery }: PoolHeaderProps) => {
});
const currentPage = useCurrentPage<PageNavKeys>(pages);

const subTitle = pool.team
? getLocalizedName(pool.team?.displayName, intl)
: currentPage?.subtitle;
const subTitle = pool.community?.name?.localized ?? currentPage?.subtitle;

const heroTitleValue = heroTitle({ currentPage, intl, pool });
const heroSubtitleValue = heroSubtitle({ currentPage, subTitle });
Expand Down

0 comments on commit 8daecae

Please sign in to comment.