This file contains hidden or 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 type ConditionalFieldsQueryData = { | |
| fieldsToHide: Array<FieldsToHide>, | |
| }; |
This file contains hidden or 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 generateDataReturn = ( | |
| { hasNextPage, endCursor } = { hasNextPage: false, endCursor: null } | |
| ) => ({ | |
| data: { | |
| repoMembers: { | |
| pageInfo: { | |
| hasNextPage, | |
| endCursor, | |
| }, | |
| edges: [...assignedUsers, ...unassignedUsers], |
This file contains hidden or 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 { 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); |
This file contains hidden or 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 { TextInput, Button } from 'react-native-paper'; | |
| import { Text, View } from 'react-native'; | |
| class LoginPage extends React.Component { | |
| state = { | |
| login: '', | |
| password: '', | |
| } |
This file contains hidden or 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 Pet = () => { | |
| return React.createElement( | |
| 'div', {}, | |
| [ | |
| React.createElement('h4', {}, 'Luna'), | |
| React.createElement('h5', {}, 'Dog'), | |
| React.createElement('h5', {}, 'Pug'), | |
| ], | |
| ) | |
| } |
This file contains hidden or 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
| .pp-attachment-drop-button | |
| align-items: center | |
| background: transparent | |
| border: 0 | |
| display: flex | |
| .pp-link | |
| color: $pipefy | |
| font: $font_size_default $fonts |
This file contains hidden or 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 = response = { | |
| '2019-06-21': {disabled: true, disableTouchEvent: true}, | |
| '2019-06-29': {disabled: true, disableTouchEvent: true}, | |
| } |
This file contains hidden or 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
| <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} |
This file contains hidden or 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
| 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(() => { |
This file contains hidden or 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
| version: '3' | |
| services: | |
| apache: | |
| image: 'php:7.2-apache' | |
| container_name: php | |
| restart: always | |
| ports: | |
| - '80:80' | |
| volumes: |