fixing tsc errors
This commit is contained in:
@@ -11,7 +11,7 @@ import toast from "react-hot-toast";
|
||||
|
||||
import { GlobalHotKeys, HotKeys, KeySequence, KeyMap } from "react-hotkeys";
|
||||
|
||||
let testFriends = [
|
||||
const testFriends = [
|
||||
{
|
||||
name: "Harold",
|
||||
role: "engineer",
|
||||
@@ -91,7 +91,7 @@ function TeamVoiceLine(props: IVoiceDemoProps) {
|
||||
if (props.demoStep == DemoStep.playIncomingMessage) {
|
||||
// play audio of paul talking
|
||||
|
||||
var audio = new Audio(
|
||||
const audio = new Audio(
|
||||
"https://firebasestorage.googleapis.com/v0/b/nirvana-for-business.appspot.com/o/messages%2F62ca7369-7c0c-4b3e-a382-12d4a237d1af.mp3?alt=media&token=b6d4acb0-afc9-4a9f-8c58-cf60a6079003"
|
||||
);
|
||||
audio.play();
|
||||
@@ -100,8 +100,9 @@ function TeamVoiceLine(props: IVoiceDemoProps) {
|
||||
props.handleChangeDemoStep(DemoStep.sendReply);
|
||||
}, 10000);
|
||||
} else if (props.demoStep == DemoStep.sendReply) {
|
||||
console.log("nothin");
|
||||
} else if (props.demoStep == DemoStep.hearReply) {
|
||||
var audio = new Audio(
|
||||
const audio = new Audio(
|
||||
"https://firebasestorage.googleapis.com/v0/b/nirvana-for-business.appspot.com/o/deep%20fakes%2Fvocodes_728915c1-eb1f-4f16-8f70-c7b0c2235b3e.wav?alt=media&token=76afd74c-7499-4bd8-9c10-dd6ff4f81c48"
|
||||
);
|
||||
audio.play();
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint"
|
||||
"check-types": "tsc --noemit",
|
||||
"lint": "yarn check-types && next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nirvana/common": "*",
|
||||
|
||||
@@ -1,25 +1,7 @@
|
||||
import Head from "next/head";
|
||||
import {
|
||||
FaSlackHash,
|
||||
FaNewspaper,
|
||||
FaCalendarAlt,
|
||||
FaRocketchat,
|
||||
FaAngleRight,
|
||||
FaCheck,
|
||||
FaInfo,
|
||||
FaInfoCircle,
|
||||
FaClock,
|
||||
FaLink,
|
||||
FaPlay,
|
||||
} from "react-icons/fa";
|
||||
import { FaAngleRight, FaCheck, FaInfoCircle, FaPlay } from "react-icons/fa";
|
||||
import { FcGoogle } from "react-icons/fc";
|
||||
import { BsThreeDots } from "react-icons/bs";
|
||||
import TeamVoiceLine from "../components/demo/TeamVoiceLine";
|
||||
import Announcements from "../components/demo/Announcements";
|
||||
import Rooms from "../components/demo/Rooms";
|
||||
import VoiceLineConceptDemo from "../components/demo/VoiceLineConceptDemo";
|
||||
|
||||
import MainLogo from "../components/Logo/MainLogo";
|
||||
import { Divider, Tooltip, Image as AntDImage } from "antd";
|
||||
import LangingPageLayout from "../components/Layouts/LandingPageLayout";
|
||||
import LandingPageActionBar from "../components/demo/LandingPageActionBar";
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { Divider } from "antd";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/router";
|
||||
import { FaAngleRight } from "react-icons/fa";
|
||||
import LandingPageActionBar from "../components/demo/LandingPageActionBar";
|
||||
import Rooms from "../components/demo/Rooms";
|
||||
import LangingPageLayout from "../components/Layouts/LandingPageLayout";
|
||||
|
||||
export default function Philosophy() {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import algoliaSearch, { SearchClient } from "algoliasearch";
|
||||
|
||||
const searchClient: SearchClient = algoliaSearch(
|
||||
process.env.NEXT_PUBLIC_ALGOLIA_APP_ID,
|
||||
process.env.NEXT_PUBLIC_ALGOLIA_API_KEY
|
||||
process.env.NEXT_PUBLIC_ALGOLIA_APP_ID || "",
|
||||
process.env.NEXT_PUBLIC_ALGOLIA_API_KEY || ""
|
||||
);
|
||||
|
||||
console.log("set up algolia search successfully");
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user