From 09aa1a4293aebbc94793cc19afb3d55c6d24ae1e Mon Sep 17 00:00:00 2001 From: Michael Schramm Date: Sun, 14 Feb 2021 11:04:34 +0100 Subject: [PATCH] fix auth requirement for profile page --- pages/admin/profile.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)