mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-23 22:12:19 +03:00
36 lines
837 B
JavaScript
36 lines
837 B
JavaScript
import * as React from "react";
|
|
|
|
import Application from "~/components/core/Application";
|
|
|
|
export const getServerSideProps = async ({ query }) => {
|
|
// return {
|
|
// props: {
|
|
// viewer: query.viewer,
|
|
// isMobile: query.isMobile,
|
|
// isMac: query.isMac,
|
|
// resources: query.resources,
|
|
// page: query.page,
|
|
// data: query.data,
|
|
// },
|
|
// };
|
|
return {
|
|
props: { ...JSON.parse(JSON.stringify(query)) },
|
|
};
|
|
};
|
|
|
|
export default class ApplicationPage extends React.Component {
|
|
render() {
|
|
return (
|
|
<Application
|
|
{...this.props}
|
|
// viewer={this.props.viewer}
|
|
// isMobile={this.props.isMobile}
|
|
// isMac={this.props.isMac}
|
|
// resources={this.props.resources}
|
|
// page={this.props.page}
|
|
// data={this.props.data}
|
|
/>
|
|
);
|
|
}
|
|
}
|