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, { ForwardedRef, forwardRef, MouseEvent } from 'react'; | |
type ClickableListProps<T> = { | |
items: T[]; | |
onSelect: ( | |
item: T, | |
event: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>, | |
) => void; | |
}; |
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
//---------------------------------------------------------------------------- | |
// BotProfile.db | |
// Author: Justin A. Boney | |
// Arranged by: Chance Aldous "King" Lepatan | |
// This database defines bot "personalities". | |
// (WARNING)Dont change this bot profile or bots many not work. | |
// | |
// 2018: BOT EDITS, PROFILES, NAMES and SKILLS V2.2 BY tNzxX | |
// New bot names, skill and weapon trees. Aim and movement for bots should now simulate keyboard and mouse and not a controller. | |
// EasyBots are the Hardest bots Example Easy>Normal>Hard>Expert. |
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 Typography from '@components/Typography'; | |
import { withTranslation } from '@i18n'; | |
class MyComponent extends Component { | |
render() { | |
const { $t } = this.props; | |
return(<Typography>{$t('name')}</Typography>); | |
} | |
} |
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 Typography from '@components/Typography'; | |
import useTranslation from '@i18n'; | |
function MyComponent() { | |
const $t = useTranslation(); | |
return <Typography>{$t('name')}</Typography> | |
} | |
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
birth_date: Yup.string() | |
.required('Campo obrigatório') | |
.test('valid-date', 'Data inválida', (value) => { | |
return moment(value, 'DD/MM/YYYY', true).isValid(); | |
}) |
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 axios from 'axios'; | |
import cloneDeep from 'lodash/cloneDeep'; | |
const baseURL = 'http://api.heavymotors.luby.com.br/api/'; | |
const commonConfigs = { timeout: 120000 }; | |
const apiPublic = axios.create({ | |
baseURL, | |
...commonConfigs, | |
}); |
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 { DELAY_TIME } from '@constants/'; | |
import { call, delay, fork, put, select, takeLatest } from 'redux-saga/effects'; | |
import * as api from './api'; | |
export const ADS_FETCH_ACTIVE_REQUEST = 'app/ads/ADS_FETCH_ACTIVE_REQUEST'; | |
export const ADS_FETCH_ACTIVE_LOADING = 'app/ads/ADS_FETCH_ACTIVE_LOADING'; | |
export const ADS_FETCH_ACTIVE_SUCCESS = 'app/ads/ADS_FETCH_ACTIVE_SUCCESS'; | |
export const ADS_FETCH_INACTIVE_REQUEST = 'app/ads/ADS_FETCH_INACTIVE_REQUEST'; | |
export const ADS_FETCH_INACTIVE_LOADING = 'app/ads/ADS_FETCH_INACTIVE_LOADING'; |
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 function getNameInitials(name) { | |
if (!name) { | |
return ''; | |
} | |
const initials = name.split(' ').map((item) => item[0]); | |
if (Array.isArray(initials)) { | |
if (initials.length > 2) { | |
return `${initials[0]}${initials[initials.length - 1]}`; |
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 ActivityIndicator from '@components/ActivityIndicator'; | |
import Box from '@components/Box'; | |
import { useNavigation } from '@react-navigation/native'; | |
import React, { useEffect, useState } from 'react'; | |
import { FlatList, RefreshControl } from 'react-native'; | |
import { useDispatch, useSelector } from 'react-redux'; | |
import * as Ducks from '../../ducks'; | |
import Item from '../components/Item'; | |
const VIEWABILITY_CONFIG = { |
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, { useEffect, useCallback, useState, useMemo } from 'react'; | |
import t from 'prop-types'; | |
import clsx from 'clsx'; | |
import { makeStyles } from '@material-ui/core/styles'; | |
import Box from '@material-ui/core/Box'; | |
import Slider from '@material-ui/core/Slider'; | |
const useStyles = makeStyles(theme => ({ | |
sliderWrapper: {}, | |
sliderLabel: { |
NewerOlder