This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface createCustomWorldProps { world: customWorld, users: Array<{ username: string, password: string, name: string }> } | |
interface customWorld { | |
attitudes: { | |
[attitudeId: string]: { | |
name: string, | |
type: 'good' | 'bad', | |
order: number, | |
iconSpriteName: string | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 'searchData' -> What data? Describe it. | |
// In fact, if your are only fetching the data in this function, | |
// it should be named something like "fetchWeatherService" | |
searchData = async (searchTerm) => { // 'index' a generic name and can be anything, always describe what a variable suppose to be | |
const weatherApiResponse = (await fetch('link')).json(); | |
const weatherList = watherApiResponse.list; | |
this.mySearchMethod(weatherList); // now this is the real search function method | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import Television from './../../../pages/Television'; | |
import { getPlansPublisher } from '../../../utils/redux/actions/publisher/PlansActions'; | |
import { updateUserCreditCard, refreshUserData} from '../../../utils/redux/actions/auth/actions'; | |
import Slider from 'react-slick'; | |
import validate from '../../utils/form/utilsForm/validForm' // validate({cpf: 'xxxx'}) => errors | |
import moment, { duration } from 'moment'; | |
import MaskedInput from 'react-text-mask'; | |
import { map } from 'lodash'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOG custom ? callsettings ->>>> {"ShowAudioModeButton": true, "ShowEndCallButton": true, "ShowMuteAudioButton": true, "ShowPauseVideoButton": true, "ShowSwitchCameraButton": true, "StartAudioMuted": false, "StartVideoMuted": false, "analyticsSettings": {"ANALYTICS_HOST": "metrics-us.cometchat.io", "ANALYTICS_PING_DISABLED": false, "ANALYTICS_USE_SSL": true, "ANALYTICS_VERSION": "v1"}, "appId": "22963631505a07dc", "defaultAudioMode": "SPEAKER", "defaultLayout": true, "domain": "rtc-us.cometchat.io", "isAudioOnly": false, "listener": undefined, "mode": "DEFAULT", "region": "us", "sessionID": "v1.us.22963631505a07dc.1674228503d2455160bc66808e2021e3adbf84dbdc7976d049", "user": {"avatar": "https://data-us.cometchat.io/assets/images/avatars/captainamerica.png", "jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImNjcHJvX2p3dF9yczI1Nl9rZXkxIn0.eyJpc3MiOiJodHRwczpcL1wvYXBpY2xpZW50LXVzLmNvbWV0Y2hhdC5pbyIsImF1ZCI6InJ0Yy11cy5jb21ldGNoYXQuaW8iLCJpYXQiOjE2NzQyMjg1MTAsInN1YiI6IlsyMjk2MzYzMTUwNWEwN2RjXXN1cGVyaGVybzIiLCJuY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const verifyIsFirstMessage = async (message) => { | |
const { conversationId, id: messageId } = message; | |
try { | |
const messagesAPI = `${BASE_API_URL}/messages?conversationId=${ | |
message.conversationId | |
}&toTimestamp=${Date.now()}`; | |
const options = { | |
method: 'GET', | |
headers: { | |
accept: 'application/json', |