diff --git a/pages/admin/profile.tsx b/pages/admin/profile.tsx index 07334e0..3eb9c4d 100644 --- a/pages/admin/profile.tsx +++ b/pages/admin/profile.tsx @@ -6,6 +6,7 @@ import React, { useState } from 'react' import { useTranslation } from 'react-i18next' import { cleanInput } from '../../components/clean.input' import Structure from '../../components/structure' +import { withAuth } from '../../components/with.auth' import { ADMIN_PROFILE_UPDATE_MUTATION, AdminProfileUpdateMutationData, @@ -151,4 +152,4 @@ const Profile: NextPage = () => { ) } -export default Profile +export default withAuth(Profile)