Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
halituzan committed Aug 20, 2024
1 parent 001eba2 commit d08be5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/Components/Main/Pages/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ type Props = {
};

const About = ({ data }: Props) => {
console.log("data",data);

const { t } = useTranslation("profile");
const { theme } = useTheme();
return (
Expand Down
7 changes: 6 additions & 1 deletion pages/about/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ export default AboutPage;
export async function getServerSideProps(context: any) {
const userId = process.env.NEXT_PUBLIC_USER_ID;
try {
const res = await Network.run(null, "GET", "/about/aboutget", null);
const res = await Network.run(
null,
"GET",
"/about/aboutget?id=" + userId,
null
);

return {
props: {
Expand Down

0 comments on commit d08be5e

Please sign in to comment.