INNER CODE UNIT · JavaScript

toggleCardOrientation

ekzhang/setwithfriends · src/App.js:51

  const toggleCardOrientation = () => {
    setCardOrientation((x) => (x === "vertical" ? "horizontal" : "vertical"));
  };

  const [volume, setVolume] = useStorage("volume", "on");

  useEffect(() => {
    return firebase.auth().onAuthStateChanged((user) => {
      if (user) {
        // User is signed in.
        setAuthUser({ ...user._delegate });
      } else {
        // User is signed out.
        setAuthUser(null);
        firebase
          .auth()
          .signInAnonymously()
          .catch(() => {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…