Skip to content

Instantly share code, notes, and snippets.

View lpillonel's full-sized avatar

Luca Pillonel lpillonel

  • IMTF
  • Fribourg
View GitHub Profile

Bulk operations

We need enpoints to handle the following operation in one transaction

  1. Remove multiple inodes
  2. Save multiple inodes
  3. Copy multiple inodes to one location
  4. Restore multiple inodes
  5. Set / Unset as favorite  multiple inodes
  6. Watch / Unwatch  multiple inodes
import React, { useMemo, useEffect } from 'react'
import IMTFPlugins from 'IMTFPlugins'
export default function MyTaskInspector({ item }) {
const caseRefOid = item.getIn(['caseRef', 'oid'])
const casePayload = IMTFPlugins.hooks.case.usePayload(caseRefOid)
return (
<div>
KYC Officer name : {casePayload && casePayload.get('kycOfficerName')}
@lpillonel
lpillonel / SlidePicker.js
Created July 15, 2017 18:32
SlidePicker
import React, { PureComponent } from 'react'
import { PanResponder, Animated, View } from 'react-native'
import styled from 'styled-components/native'
const PRIMARY_COLOR = '#F9B120'
const SECONDARY_COLOR = 'rgb(26,126,248)'
const BACKGROUND_COLOR = '#F6F6F6'
const TEXT_COLOR = '#888888'