diff options
| author | Max Nanis | 2025-06-10 03:40:01 +0700 |
|---|---|---|
| committer | Max Nanis | 2025-06-10 03:40:01 +0700 |
| commit | abec6d734cde8a2bb0924989b1c5801e924137c3 (patch) | |
| tree | 435129936d8504a23d7d699359ebe234f03cf5b5 /src/Widget.tsx | |
| parent | e5dac8b9d61b175b09d859643a94ea91ee6ef48d (diff) | |
| download | panel-ui-abec6d734cde8a2bb0924989b1c5801e924137c3.tar.gz panel-ui-abec6d734cde8a2bb0924989b1c5801e924137c3.zip | |
Adding userProfile redux slice, showing created timestamp on user page.
Diffstat (limited to 'src/Widget.tsx')
| -rw-r--r-- | src/Widget.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Widget.tsx b/src/Widget.tsx index e1522c0..16dba81 100644 --- a/src/Widget.tsx +++ b/src/Widget.tsx @@ -11,6 +11,7 @@ import { CashoutMethodOut, MarketProfileKnowledge, OfferwallApi, + ProductUserApi, ProfilingQuestionsApi, QuestionInfo, UserProfileKnowledge, @@ -26,6 +27,7 @@ import {setUpkQuestions} from "@/models/upkQuestionSlice.ts" import {setAvailabilityCount, setOfferwallId} from "@/models/appSlice.ts" import {setUpkAnswers} from "@/models/userUpkAnswerSlice.ts"; import {setMarketplaceAnswers} from "@/models/userMarketplaceAnswerSlice.ts"; +import {setUserProfile} from "@/models/userProfileSlice.ts"; import './index.css'; @@ -50,6 +52,12 @@ const Widget = () => { }) .catch(err => console.log(err)); + new ProductUserApi().userProfileProductIdUserProductUserIdProfileGet(app.bpid, app.bpuid) + .then(res => { + dispatch(setUserProfile(res.data["user-profile"])) + }) + .catch(err => console.log(err)) + new ProfilingQuestionsApi().getProfilingQuestionsProductIdProfilingQuestionsGet(app.bpid, app.bpuid, "104.9.125.144", undefined, undefined, 2500) .then(res => { dispatch(setQuestions(res.data.questions as ProfileQuestion[])) |
