Преглед изворни кода

refactor: typescript

master
ntasicc пре 3 година
родитељ
комит
13a4f607a5
1 измењених фајлова са 17 додато и 0 уклоњено
  1. 17
    0
      pages/contact/index.tsx

+ 17
- 0
pages/contact/index.tsx Прегледај датотеку

import { GetStaticProps, NextPage } from 'next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import ContactForm from '../../components/forms/contact/ContactForm';

const ContactPage: NextPage = () => {
return <ContactForm />;
};

export const getStaticProps: GetStaticProps = async ({ locale }: any) => {
return {
props: {
...(await serverSideTranslations(locale, ['forms', 'contact', 'common'])),
},
};
};

export default ContactPage;

Loading…
Откажи
Сачувај