Skip to content

Commit

Permalink
Merge branch 'main' into 10793-main-site-navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoni K committed Oct 29, 2024
2 parents fe2790e + 3518ecd commit 34fa5f1
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 29 deletions.
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
"devDependencies": {
"@faker-js/faker": "^9.0.3",
"@formatjs/cli": "^6.2.15",
"@formatjs/cli": "^6.3.5",
"@gc-digital-talent/eslint-config": "workspace:*",
"@gc-digital-talent/fake-data": "workspace:*",
"@gc-digital-talent/helpers": "workspace:*",
Expand Down
19 changes: 13 additions & 6 deletions apps/web/src/pages/DirectivePage/DirectivePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
import Hero from "~/components/HeroDeprecated";
import useBreadcrumbs from "~/hooks/useBreadcrumbs";
import useRoutes from "~/hooks/useRoutes";
import SEO from "~/components/SEO/SEO";

import Resources from "./Resources";

Expand Down Expand Up @@ -76,6 +77,13 @@ export const pageTitle = defineMessage({
description: "Title for the digital talent directive page",
});

export const pageSubtitle = defineMessage({
defaultMessage:
"Learn more about how the Government of Canada is strengthening the talent base of the GC digital community.",
id: "c/u1K+",
description: "Subtitle for the digital talent directive page",
});

export const Component = () => {
const intl = useIntl();
const locale = getLocale(intl);
Expand Down Expand Up @@ -103,14 +111,13 @@ export const Component = () => {

return (
<>
<SEO
title={intl.formatMessage(pageTitle)}
description={intl.formatMessage(pageSubtitle)}
/>
<Hero
title={intl.formatMessage(pageTitle)}
subtitle={intl.formatMessage({
defaultMessage:
"Learn more about how the Government of Canada is strengthening the talent base of the GC digital community.",
id: "c/u1K+",
description: "Subtitle for the digital talent directive page",
})}
subtitle={intl.formatMessage(pageSubtitle)}
crumbs={crumbs}
linkSlot={
<>
Expand Down
15 changes: 1 addition & 14 deletions packages/forms/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ import {
FieldsetHTMLAttributes,
ReactNode,
} from "react";
import {
RegisterOptions,
FieldError,
FieldErrorsImpl,
Merge,
} from "react-hook-form";
import { RegisterOptions } from "react-hook-form";

export type FieldLabels = Record<string, ReactNode>;

Expand Down Expand Up @@ -45,14 +40,6 @@ export interface CommonInputProps {
trackUnsaved?: boolean;
}

export type InputFieldError =
| string
| FieldError
// This is from `react-hook-form` so ignore the any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
| Merge<FieldError, FieldErrorsImpl<any>>
| undefined;

export interface Option {
label: ReactNode;
value: string | number;
Expand Down
2 changes: 1 addition & 1 deletion packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@gc-digital-talent/graphql": "workspace:*"
},
"devDependencies": {
"@formatjs/cli": "^6.2.15",
"@formatjs/cli": "^6.3.5",
"@gc-digital-talent/eslint-config": "workspace:*",
"@gc-digital-talent/helpers": "workspace:*",
"@gc-digital-talent/logger": "workspace:*",
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 34fa5f1

Please sign in to comment.