Skip to content

Commit

Permalink
Separate a responsibility within the head shared component #3229
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcmoulton committed May 8, 2024
1 parent 2137b78 commit 06f5b4a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
@@ -0,0 +1,3 @@
export type ClientClassification = {
userAgent: string | undefined,
};
5 changes: 1 addition & 4 deletions src/read-side/html-pages/shared-components/head/head.ts
@@ -1,15 +1,12 @@
import { htmlEscape } from 'escape-goat';
import * as O from 'fp-ts/Option';
import { pipe } from 'fp-ts/function';
import { ClientClassification } from './client-classification';
import { fathom, googleTagManager } from '../../../../shared-components/analytics';
import { HtmlFragment, toHtmlFragment } from '../../../../types/html-fragment';
import { UserId } from '../../../../types/user-id';
import { HtmlPageHead } from '../../html-page';

export type ClientClassification = {
userAgent: string | undefined,
};

export type DynamicHeadViewModel = HtmlPageHead & {
clientClassification: ClientClassification,
};
Expand Down
3 changes: 2 additions & 1 deletion src/read-side/html-pages/shared-components/head/index.ts
@@ -1 +1,2 @@
export { ClientClassification, DynamicHeadViewModel, head } from './head';
export { DynamicHeadViewModel, head } from './head';
export { ClientClassification } from './client-classification';

0 comments on commit 06f5b4a

Please sign in to comment.