diff --git a/src/pages/create/index.tsx b/src/pages/create/index.tsx index 537331e..d6c638e 100644 --- a/src/pages/create/index.tsx +++ b/src/pages/create/index.tsx @@ -1,4 +1,4 @@ -import { api } from '@/services/api'; +import { api, Template } from '@/services/api'; import { auth } from '@/services/auth'; import { useEffect, useState } from 'react'; import { useParams } from 'react-router-dom'; @@ -10,9 +10,10 @@ import './index.css'; export default function Create() { const { templateCode } = useParams(); const [isLoggedIn, setIsLoggedIn] = useState(false); - const [loginRedirecting, setLoginRedirecting] = useState(false); + const [template, setTemplate] = useState