Skip to content

Instantly share code, notes, and snippets.

View ralfting's full-sized avatar
🏠
Working from home

Ralph Effting ralfting

🏠
Working from home
  • Birdie
  • Palhoça - SC
View GitHub Profile
export type ConditionalFieldsQueryData = {
fieldsToHide: Array<FieldsToHide>,
};
const generateDataReturn = (
{ hasNextPage, endCursor } = { hasNextPage: false, endCursor: null }
) => ({
data: {
repoMembers: {
pageInfo: {
hasNextPage,
endCursor,
},
edges: [...assignedUsers, ...unassignedUsers],
import React, { useState } from 'react';
import { TextInput, Button } from 'react-native-paper';
import { Text, View } from 'react-native';
const LoginPage = () => {
const [login, setLogin] = useState('');
const [password, setPassword] = useState('');
const onSubmit = () => {
login(credentials);
import React from 'react';
import { TextInput, Button } from 'react-native-paper';
import { Text, View } from 'react-native';
class LoginPage extends React.Component {
state = {
login: '',
password: '',
}
const Pet = () => {
return React.createElement(
'div', {},
[
React.createElement('h4', {}, 'Luna'),
React.createElement('h5', {}, 'Dog'),
React.createElement('h5', {}, 'Pug'),
],
)
}
.pp-attachment-drop-button
align-items: center
background: transparent
border: 0
display: flex
.pp-link
color: $pipefy
font: $font_size_default $fonts
const = response = {
'2019-06-21': {disabled: true, disableTouchEvent: true},
'2019-06-29': {disabled: true, disableTouchEvent: true},
}
<Base className={className} isEmpty={!value} {...this.props} labelTag="b" tag="div">
<div className="pp-width-150">
<TimePicker
className="pp-display-block "
inputSize="md"
value={value && moment.utc(value, ['hh:mm A', 'HH:mm'])}
start={moment().startOf('day')}
end={moment().endOf('day')}
interval={30}
locale={locale || DEFAULT_LOCALE}
class App extends React.Component {
state = {
counter: 0,
}
componentDidMount() {
// if used in here, that's works well without need to pass a CB in the second argument of setState
// that's because the setState in this context is synchronous
// setInterval(() => {
version: '3'
services:
apache:
image: 'php:7.2-apache'
container_name: php
restart: always
ports:
- '80:80'
volumes: