diff --git a/website/contexts/FunctionTabsContext.js b/website/contexts/FunctionTabsContext.js deleted file mode 100644 index f080886..0000000 --- a/website/contexts/FunctionTabsContext.js +++ /dev/null @@ -1,16 +0,0 @@ -import React, { createContext, useState } from 'react'; - -export const FunctionTabsContext = createContext(); - -function FunctionTabsContextProvider(props) { - - const [slideIndex, setSlideIndex] = useState(0); - - return ( - - {props.children} - - ); -} - -export default FunctionTabsContextProvider; \ No newline at end of file diff --git a/website/hoc/withoutAuth.js b/website/hoc/withoutAuth.js index 42d8125..c1ca0b0 100644 --- a/website/hoc/withoutAuth.js +++ b/website/hoc/withoutAuth.js @@ -8,7 +8,7 @@ const withoutAuth = (WrappedComponent) => { const { isAuth, user } = useContext(UserContext); - if (isAuth) return redirect({}, `/profile/${user.name}`); + if (isAuth) return redirect({}, `/users/${user.name}`); return ; }