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
Verifying my Blockstack ID is secured with the address 12V3dWzQSkHFePfDGzY5mZKD9RX3uxvT5d https://explorer.blockstack.org/address/12V3dWzQSkHFePfDGzY5mZKD9RX3uxvT5d |
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 from "react"; | |
import ReactDOM from "react-dom"; | |
import { BrowserRouter } from "react-router-dom"; | |
import App from "./App"; | |
import configureStore from "./shared/store/configureStore"; | |
import registerServiceWorker from "./registerServiceWorker"; | |
import { Provider } from "react-redux"; | |
import ErrorBoundary from "./shared/components/ErrorBoundary"; | |
import Modal from "react-modal"; | |
import ApolloClient, { InMemoryCache } from "apollo-boost"; |
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 [ | |
execGetThreadData, | |
{ called, data: getThreadData, error, loading, refetch } | |
] = useLazyQuery(GetThread); | |
useEffect(() => { | |
if (called && loading) { | |
log("thread is loading"); | |
} else if (error) { | |
log(error); |
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 [execPostThread] = useMutation<any, any>(PostThreadMutation, { | |
refetchQueries: [ | |
{ | |
query: QueryMe | |
} | |
] | |
}); | |
useEffect(() => { | |
if (askToPostThread && allowPostThread) { |
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 { data, errors } = await execPostThread({ | |
variables: { | |
threadId: localThread !== null ? localThread.id : "0", | |
userId: userProfile ? userProfile!.id : "0", | |
title, | |
body, | |
videoUrl, | |
bounty, | |
categoryId: selectedCategory!.id | |
} |
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 from 'react'; | |
import { Redirect, Route } from 'react-router-dom'; | |
import { | |
IonApp, | |
IonIcon, | |
IonLabel, | |
IonRouterOutlet, | |
IonTabBar, | |
IonTabButton, | |
IonTabs |
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 { | |
IonCard, | |
IonCardContent, | |
IonCardHeader, | |
IonCardSubtitle, | |
IonCardTitle, | |
IonContent, | |
IonHeader, | |
IonIcon, | |
IonItem, |
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 from 'react'; | |
import ReactDOM from 'react-dom'; | |
import App from './App'; | |
import * as serviceWorker from './serviceWorker'; | |
import { defineCustomElements } from '@ionic/pwa-elements/loader'; | |
ReactDOM.render(<App />, document.getElementById('root')); | |
defineCustomElements(window); |
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 from 'react'; | |
import { Redirect, Route } from 'react-router-dom'; | |
import { | |
IonApp, | |
IonIcon, | |
IonLabel, | |
IonRouterOutlet, | |
IonTabBar, | |
IonTabButton, | |
IonTabs |
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, { useCallback, useEffect } from 'react'; | |
import { CameraResultType } from '@capacitor/core'; | |
import { useCamera, availableFeatures } from '@ionic/react-hooks/camera'; | |
import { IonButton, IonContent, IonHeader, IonToolbar, IonTitle, IonPage, IonText } from '@ionic/react'; | |
const Camera: React.FC = () => { | |
const { photo, getPhoto } = useCamera(); | |
const triggerCamera = useCallback(async () => { | |
if(availableFeatures.getPhoto) { | |
await getPhoto({ |
OlderNewer