Merge branch 'metric-data-gender' into 'develop'
metric-data-gender See merge request witapp/aura-webapp!148
This commit is contained in:
commit
d7f49476fb
@ -296,7 +296,9 @@ function App(): JSX.Element {
|
||||
<Route
|
||||
path={routes.client.epeGender()}
|
||||
element={<GenderPage productKey={EProductKeys["moons.pdf.aura"]} />}
|
||||
/>
|
||||
>
|
||||
<Route path=":targetId" element={<GenderPage />} />
|
||||
</Route>
|
||||
</Route>
|
||||
<Route
|
||||
element={
|
||||
@ -423,7 +425,9 @@ function App(): JSX.Element {
|
||||
<Route
|
||||
path={routes.client.advisorChatGender()}
|
||||
element={<GenderPage productKey={EProductKeys["chat.aura"]} />}
|
||||
/>
|
||||
>
|
||||
<Route path=":targetId" element={<GenderPage />} />
|
||||
</Route>
|
||||
</Route>
|
||||
<Route
|
||||
element={
|
||||
|
||||
@ -20,6 +20,11 @@ function GenderPage({ productKey }: IGenderPageProps): JSX.Element {
|
||||
useEffect(() => {
|
||||
const isShowTryApp = targetId === "i";
|
||||
dispatch(actions.userConfig.addIsShowTryApp(isShowTryApp));
|
||||
if (targetId && typeof window.ym === "function" && targetId !== "i") {
|
||||
window.ym(95799066, "userParams", {
|
||||
genderFrom: targetId,
|
||||
});
|
||||
}
|
||||
}, [dispatch, targetId]);
|
||||
|
||||
const selectGender = (gender: Gender) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user