index.js
663 Bytes
import React from "react";
import Layout from "../../../components/layout/Layout";
import MyGiftCard from "../../../components/user/MyGiftCard";
import { getGiftCard } from "../../../redux/actions/giftCardAction";
import { wrapper } from "../../../redux/store";
export default function UserGiftCardPage () {
return (
<Layout>
<MyGiftCard />
</Layout>
);
};
/** For server side rendering */
export const getServerSideProps = wrapper.getServerSideProps(store => async ({ req, query }) => {
try {
// await store.dispatch(getGiftCard())
return {
props: {},
};
} catch (error) {
}
});