Skip to content

final-proj01/final-frontend

Repository files navigation

redirect routes

     {/* <ul className={styles.Profile}>
  {gameLists.map(result => {
    return <li key={result._id} className={styles.searchResult}>
      <SearchResultCard games={result} />
    </li>;
  })}
</ul> */}
{/* { gameLists.length > 0
  ? <FormButton onClick={more}>moar</FormButton>
  : ''
} */}
;

https://myst-backend.herokuapp.com

// const [email, setEmail] = useState(''); // const [password, setPassword] = useState(''); // const [loginEmail, setLoginEmail] = useState(''); // const [loginPassword, setLoginPassword] = useState(''); // const { push } = useHistory();

// async function handleSubmit(e) {

// e.preventDefault();

// const user = await signUp(email, password);

// setUser(user); // push('Profile');

// }

// async function handleLoginSubmit(e) {

// e.preventDefault();

// const user = await signIn(loginEmail, loginPassword);

// setUser(user); // push('Profile'); // }

// import YouTubeEmbed from '../Embeds/YouTube.jsx'; // import TwitchEmbed from '../Embeds/Twitch.jsx';

//

// // Email: <input onChange={e => setLoginEmail(e.target.value)} value={loginEmail} type="email"> // Password: <input onChange={e => setLoginPassword(e.target.value)} value={loginPassword} type="password"> // Log In // //

//
//

// Not a user already? // // Email<input onChange={e => setEmail(e.target.value)} value={email} type="email"> // Password<input onChange={e => setPassword(e.target.value)} value={password} type="password"> // Sign Up // // //
// );

// function useForm(formData) { // const { getValue } = useForm(); // const [data, setData] = useState(formData ?? {});

// useEffect(() => { // setData(formData ?? {}); // }, [formData]); // }

// const handleChange = ({ target }) => { // setData((data) => ({ // ...data, // [target.description]: getValue(target), // [target.clip_link]: getValue(target), // [target.title]: getValue(target), // [target.option]: getValue(target) // })); // return [data, handleChange]; // };

// if (details.o_site === 'youtube') { // const vidId = details.clip_link.split('v=')[1]; // details.clip_link = vidId; // } else if (details.o_site === 'twitch') { // const vidId = details.clip_link.split('clip/')[1]; // const twitchFormat = https://clips.twitch.tv/embed?clip=${vidId}; // details.clip_link = twitchFormat; // } else { // setError('Something went wrong creating the clip, please try again'); // return; // }