Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
halituzan committed Sep 29, 2024
1 parent b4097c0 commit 4ca00f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions app/AdminComponents/About/AboutPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { Icon } from "@iconify/react/dist/iconify.js";
type Props = {};

const AboutPage = (props: Props) => {
const userId = process.env.NEXT_PUBLIC_USER_ID;
const [dataOk, setDataOk] = useState(true);
const [openIconList, setOpenIconList] = useState(false);
const [iconList, setIconList] = useState([]);
Expand Down Expand Up @@ -44,12 +43,7 @@ const AboutPage = (props: Props) => {

const getAbout = async () => {
try {
const res = await Network.run(
null,
"GET",
"/about/aboutget?id=" + userId,
null
);
const res = await Network.run(null, "GET", "/about/aboutget", null);
const icons = await Network.run(null, "GET", "icons", null);
setValues(res.data);
setIconList(icons.data ?? []);
Expand Down
8 changes: 1 addition & 7 deletions pages/about/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,8 @@ const AboutPage = ({ data, messages }: Props) => {
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?id=669eb755c42b621e680a24a7",
null
);
const res = await Network.run(null, "GET", "/about/aboutget", null);

return {
props: {
Expand Down

0 comments on commit 4ca00f6

Please sign in to comment.