Skip to content

Commit 8c2d235

Browse files
committed
Merge branch 'redesign-2024' into redesign/implemented-list-view
2 parents 3005fff + ead43ae commit 8c2d235

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

src/app/components/pages/Glossary.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {useEffect, useMemo, useRef, useState} from "react";
22
import {Col, Container, Input, Label, Row} from "reactstrap";
33
import queryString from "query-string";
4-
import {AppState, useAppSelector} from "../../state";
4+
import {AppState, logAction, useAppDispatch, useAppSelector} from "../../state";
55
import {ShowLoading} from "../handlers/ShowLoading";
66
import {TitleAndBreadcrumb} from "../elements/TitleAndBreadcrumb";
77
import {ShareLink} from "../elements/ShareLink";
@@ -98,6 +98,7 @@ function processQueryString(query: string): QueryStringResponse {
9898
const ALPHABET_HEADER_OFFSET = -65;
9999

100100
export const Glossary = () => {
101+
const dispatch = useAppDispatch();
101102
const location = useLocation();
102103
const history = useHistory();
103104
// query stages not used recently
@@ -121,6 +122,11 @@ export const Glossary = () => {
121122
)
122123
);
123124

125+
// Log on initial page load
126+
useEffect(() => {
127+
dispatch(logAction({type: "VIEW_GLOSSARY_PAGE"}));
128+
}, []);
129+
124130
// Update url
125131
useEffect(() => {
126132
const params: {[key: string]: string} = {};

src/scss/cs/elements.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@
1515
}
1616
}
1717

18+
.text-theme {
19+
@extend .text-secondary;
20+
}
21+
22+
.bg-theme {
23+
@extend .bg-secondary;
24+
}
25+
26+
.border-theme {
27+
@extend .border-secondary;
28+
}
29+
1830
.bg-dark-pink-200 {
1931
background-color: $dark-pink-200;
2032
}

0 commit comments

Comments
 (0)