react-garden
Version:
React + TypeScript + ThreeJS app using Material UI on NextJS, Apollo Client, GraphQL + WordPress REST APIs, for ThreeD web development.. a part of the threed.ai code family.
23 lines (17 loc) • 490 B
JavaScript
// ** Third Party Imports
import axios from 'axios'
// ** Demo Components Imports
import UserViewPage from '~/views/apps/user/view/UserViewPage'
const UserView = ({ invoiceData }) => {
return <UserViewPage id='1' invoiceData={invoiceData} />
}
export const getStaticProps = async () => {
const res = await axios.get('/apps/invoice/invoices')
const invoiceData = res.data.allData
return {
props: {
invoiceData
}
}
}
export default UserView