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 { submitForm } from '../../store/actions/submitForm' | |
import Success from '../common/Success'; | |
const ContactForm = () => { | |
const [name, setName] = useState('') | |
const [email, setEmail] = useState('') | |
const [message, setMessage] = useState('') | |
const [isAnimationHidden, showAnimation] = useState(true) | |
const [counter, setCounter] = useState(null) |
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
/* eslint-disable react/prop-types */ | |
/* eslint-disable no-unused-vars */ | |
/* eslint-disable no-console */ | |
import React, { useState, useEffect } from 'react' | |
import { api } from '../api' | |
import { useServerData } from '../state/serverDataContext' | |
import Cover from './Cover' | |
import Header from './Header' | |
import styles from '../styles/root/Root.module.scss' |
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 d = new Date() | |
const currentYear = d.getFullYear() | |
const months = Array(12).fill().map((e,i) => i) | |
// console.debug('currentYear', currentYear) | |
// console.debug(months) | |
const getDaysInMonth = (month, year) => (new Array(31)).fill('').map((v,i)=>new Date(year,month-1,i+1)).filter(v=>v.getMonth()===month-1) | |
console.debug(getDaysInMonth(1, currentYear)) |
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
# Uses | |
## Editor | |
- [Visual Studio Code](https://code.visualstudio.com/download) (settings [here](https://gist.github.com/diurivj/ca5222271a32336273ac1c5a168e8166)) | |
- [lucy](https://marketplace.visualstudio.com/items?itemName=juliettepretot.lucy-vscode) editor theme by [juliettepretot](https://marketplace.visualstudio.com/publishers/juliettepretot) | |
- [Dank Mono](https://dank.sh/) font by [Phil Plückthun](https://twitter.com/_philpl) | |
## Chrome Extensions | |
- [JSON Viewer](https://chrome.google.com/webstore/detail/json-viewer/gbmdgpbipfallnflgajpaliibnhdgobh) | |
- [React Developer Tools](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi) |
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
#!/bin/sh | |
branch="$(git rev-parse --abbrev-ref HEAD)" | |
if [ "$branch" = "master" ]; then | |
echo "You can't commit directly to master branch" | |
exit 1 | |
fi |
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 { createAppContainer, createStackNavigator, createSwitchNavigator, createDrawerNavigator, createBottomTabNavigator } from "react-navigation" | |
import { Vibration, Text } from 'react-native' | |
import Icon from '@expo/vector-icons/Ionicons' | |
import IconBadge from 'react-native-icon-badge' | |
import { FontAwesome, MaterialCommunityIcons, MaterialIcons } from '@expo/vector-icons' | |
import UserWelsomeScreen from './screens/UserWelcomeScreen/UserWelcomeScreen' | |
import HistoryScreen from './screens/HistoryScreen/HistoryScreen' | |
import HomeScreen from './screens/Home/HomeScreen' | |
import QrReadScreen from "./screens/QrReadScreen/QrReadScreen" |
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
/* eslint-disable */ | |
import React from 'react' | |
import PropTypes from 'prop-types' | |
import LibraryHeaderStyle from './LibraryHeader.module.scss' | |
const LibraryHeader = (props) => { | |
const { selectedTab } = props | |
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 { View, StyleSheet, Text, StatusBar, ActivityIndicator, LinearGradient, Image, NetInfo, Animated, Dimensions, Easing } from 'react-native' | |
import { connect } from 'react-redux' | |
import firebase from 'firebase' | |
import { Facebook } from 'expo' | |
import { TextField } from 'react-native-material-textfield' | |
import Button from '../../components/common/Button' | |
import { colors } from '../../styles/colors' | |
import Logo from '../../../assets/logo.png' | |
import { setUser } from "../../actions/setUser" |
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 { StatusBar, Platform } from 'react-native'; | |
import { Provider, connect } from 'react-redux'; | |
import { ThemeProvider } from 'styled-components'; | |
import styled from 'styled-components/native'; | |
import { FormattedWrapper } from 'react-native-globalize'; | |
import firebase from 'firebase'; | |
import messages from './Messages'; | |
import store from './store'; | |
import { colors } from './utils/constants'; |