The price mentioned on the pricing page is not correct
- Log in to the system
- Go to the pricing page
- Click more details button
- The Price for the basic plan should be $43
import React from 'react'; | |
import { isPremited } from './premission'; // custom module | |
class UserList extends React.Component { | |
renderEdit() { | |
let { roles } = this.props; | |
if(!isPremited(roles, 'EDIT_USER')) return null; | |
return ( |
class CreateGroup extends React.Component { | |
render() { | |
.... | |
<Field meta={meta} name={'username'} ref={'username'} value={this.state['username']} onChange={onFieldChange}/> | |
<Field meta={meta} name={'password'} ref={'password'} value={this.state['password']} type="password" onChange={onFieldChange}/> | |
<Field meta={meta} type="text" name={'fullname'} ref={'fullname'} value={this.state['fullname']} onChange={onFieldChange}/> | |
<Field type="select" meta={meta} name={'role'} ref={'role'} value={this.state['role']} onChange={onFieldChange}/> | |
} | |
createGroup() { |
{ | |
"attendance": { | |
"id": "454354sgs554s5z558z6z13", | |
"type": "in", | |
"date": "2018/03/15", | |
"time": "07:00", | |
"status": "approved", // ["pending", "approved", "rejected"] | |
"employee": "890s0fd900g9f7gga0ag0a80b" | |
} | |
} |
function increment(x) { return x + 1; } | |
function decrement(x) { return x - 1; } | |
function double(x) { return x * 2; } | |
function half(x) { return x / 2; } | |
function compose(...fns) { | |
return pipe(...fns.reverse()); | |
} | |
function pipe(...fns) { | |
return function(input) { |
/** | |
const data = { | |
firstName_en: "Iswan", | |
lastName_en: "Jumat", | |
age: 30 | |
} | |
* | |
const exprectedData = { | |
firstName: "Iswan", | |
lastName: "Jumat", |
My Awesome Sketch | |
First State | |
some event -> Second State | |
Second State |
import React from "react"; | |
const isPremited = (roles, type) => { | |
// premission check logic | |
return ...; | |
} | |
export default () => { | |
let { roles, permissionId, children } = this.props; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.main { | |
position: relative; | |
width: 440px; |