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
export const useInvestmentTypes = () => { | |
const [investmentTypesData, setInvestmentTypesData] = useState([]); | |
const token = selectToken.data.token; | |
const [loading, setLoading] = useState(false); | |
const [error, setError] = useState(null); | |
const fetchInvestmentsTypes = useCallback(() => { | |
const fetchInvestmentTypesData = async () => { | |
const req = async () => { | |
try { |
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
export const useInvestmentDetails = (id) => { | |
const [currentInvestment, setCurrentInvestment] = useState([]); | |
const token = selectToken; | |
const [loading, setLoading] = useState(false); | |
const [error, setError] = useState(null); | |
const fetchInvestmentDetails = useCallback(() => { | |
const fetcInvestmentData = async () => { | |
const req = async () => { | |
try { |
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, { useState } from "react"; | |
import { Formik, Form } from "formik"; | |
import * as Yup from "yup"; | |
import InputField from "../../components/InputField"; | |
import "./Login.scss"; | |
import { withRouter, Link } from "react-router-dom"; | |
import { useDispatch } from "react-redux"; | |
import { setUser } from "../../redux/ducks/user"; | |
import axios from "axios"; | |
import Cookies from "js-cookie"; |
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
export const getAllTransactions = async (params) => { | |
const token = selectToken; | |
return await axiosWithAuth(token) | |
.get("/treasury/transactions?include=source,beneficiary,bank", { params }) | |
.catch(function (error) { | |
if (error.response.status === 401) { | |
logout(); | |
} | |
}); |
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 faker from "faker"; | |
const rand = () => Math.floor(Math.random() * 10) + 2; | |
const messages = [ | |
{ | |
id: "1", | |
body: "Cursus turpis massa tincidunt dui. Non pulvinar neque laoreet suspendisse interdum consectetur libero id. Quis varius quam quisque id diam vel quam. Aenean sed adipiscing ", | |
}, | |
{ | |
id: "2", |
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 { ChildDataProps, graphql } from "@apollo/react-hoc"; | |
import { useQuery, gql } from "@apollo/client"; | |
import ProjectsColumn from "./ProjectsColumn"; | |
import { useState } from "react"; | |
interface ProjectProps { | |
location: any; | |
history: any; | |
} |
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
// SPDX-License-Identifier: GPL-3.0 | |
/** | |
!Disclaimer! | |
These contracts have been used to create tutorials, | |
and was created for the purpose to teach people | |
how to create smart contracts on the blockchain. | |
please review this code on your own before using any of | |
the following code for production. | |
*/ |
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 IData { | |
name?: string; | |
department?: string; | |
teamlead?: string; | |
role?: string; | |
location?: string; | |
lga?: string; | |
country?: string; | |
due_date?: string; | |
children?: JSX.Element | JSX.Element[]; |
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 {Text, View, StyleSheet} from 'react-native'; | |
const TranscribedOutput = ({transcribedText, interimTranscribedText}: any) => { | |
if (transcribedText.length === 0 && interimTranscribedText.length === 0) { | |
return <Text>...</Text>; | |
} | |
return ( | |
<View style={styles.box}> |
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, {useRef, useState, useEffect} from 'react'; | |
import { | |
SafeAreaView, | |
ScrollView, | |
StyleSheet, | |
Text, | |
View, | |
Switch, | |
ActivityIndicator, | |
} from 'react-native'; |
OlderNewer