Commit 9e4540ec authored by Dida Adams Arizona's avatar Dida Adams Arizona

Merge branch 'didam' into 'master'

update button close

See merge request !117
parents 645fbaab 1b02dfa9
...@@ -35,6 +35,7 @@ const Images = { ...@@ -35,6 +35,7 @@ const Images = {
berhasil: require('./berhasil.svg'), berhasil: require('./berhasil.svg'),
up: require('./up.svg'), up: require('./up.svg'),
down: require('./down.svg'), down: require('./down.svg'),
close: require('./close.svg'),
//Image //Image
triputra: require('./triputra.png'), triputra: require('./triputra.png'),
......
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
<defs>
<path id="gi74onwb9a" d="M.898.157l-.74.74c-.212.211-.209.546 0 .754l14.19 14.193c.21.209.546.208.754 0l.74-.74c.212-.212.209-.547 0-.755L1.653.156C1.547.052 1.412 0 1.275 0 1.14 0 1.002.052.898.157z"/>
</defs>
<g fill="none" fill-rule="evenodd">
<path d="M0 0H24V24H0z" transform="translate(-4 -4)"/>
<g transform="translate(-4 -4) translate(4 4)">
<path stroke="#FFF" stroke-linecap="round" stroke-width="2" d="M1.143 1.143L14.857 14.857M14.857 1.143L1.143 14.857"/>
</g>
</g>
</svg>
...@@ -671,7 +671,7 @@ export default class ApprovalMatrix extends Component { ...@@ -671,7 +671,7 @@ export default class ApprovalMatrix extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.setState({ visibleUpload: false })} onClick={() => this.setState({ visibleUpload: false })}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -6,6 +6,7 @@ import * as R from 'ramda' ...@@ -6,6 +6,7 @@ import * as R from 'ramda'
import format from "date-fns/format"; import format from "date-fns/format";
import localeID from "date-fns/locale/id" import localeID from "date-fns/locale/id"
import api from "../../api"; import api from "../../api";
import Images from '../../assets/Images';
export default class CreateApprovalMatrix extends Component { export default class CreateApprovalMatrix extends Component {
constructor(props) { constructor(props) {
...@@ -170,7 +171,7 @@ export default class CreateApprovalMatrix extends Component { ...@@ -170,7 +171,7 @@ export default class CreateApprovalMatrix extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.props.onClickClose()} onClick={() => this.props.onClickClose()}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -5,6 +5,7 @@ import Autocomplete from '@material-ui/lab/Autocomplete'; ...@@ -5,6 +5,7 @@ import Autocomplete from '@material-ui/lab/Autocomplete';
import * as R from 'ramda' import * as R from 'ramda'
import format from "date-fns/format"; import format from "date-fns/format";
import api from "../../api"; import api from "../../api";
import Images from '../../assets/Images';
const operator = [ const operator = [
{ {
...@@ -189,7 +190,7 @@ export default class EditApprovalMatrix extends Component { ...@@ -189,7 +190,7 @@ export default class EditApprovalMatrix extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.props.onClickClose()} onClick={() => this.props.onClickClose()}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -5,6 +5,7 @@ import api from '../../../api'; ...@@ -5,6 +5,7 @@ import api from '../../../api';
import { DatePicker } from '@material-ui/pickers'; import { DatePicker } from '@material-ui/pickers';
import { format } from 'date-fns'; import { format } from 'date-fns';
import * as R from 'ramda' import * as R from 'ramda'
import Images from '../../../assets/Images';
export default class CreateParameter extends Component { export default class CreateParameter extends Component {
constructor(props) { constructor(props) {
...@@ -377,7 +378,7 @@ export default class CreateParameter extends Component { ...@@ -377,7 +378,7 @@ export default class CreateParameter extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.props.onClickClose()} onClick={() => this.props.onClickClose()}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
...@@ -697,7 +698,7 @@ export default class CreateParameter extends Component { ...@@ -697,7 +698,7 @@ export default class CreateParameter extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.props.onClickClose()} onClick={() => this.props.onClickClose()}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -777,7 +777,7 @@ export default class Parameter extends Component { ...@@ -777,7 +777,7 @@ export default class Parameter extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.setState({ visibleUpload: false })} onClick={() => this.setState({ visibleUpload: false })}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -5,6 +5,7 @@ import { DateTimePicker, KeyboardDatePicker, DatePicker } from "@material-ui/pic ...@@ -5,6 +5,7 @@ import { DateTimePicker, KeyboardDatePicker, DatePicker } from "@material-ui/pic
import format from "date-fns/format"; import format from "date-fns/format";
import Autocomplete from '@material-ui/lab/Autocomplete'; import Autocomplete from '@material-ui/lab/Autocomplete';
import api from '../../../api'; import api from '../../../api';
import Images from '../../../assets/Images';
export default class CreatePerusahaan extends Component { export default class CreatePerusahaan extends Component {
constructor(props) { constructor(props) {
...@@ -123,7 +124,7 @@ export default class CreatePerusahaan extends Component { ...@@ -123,7 +124,7 @@ export default class CreatePerusahaan extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.props.onClickClose()} onClick={() => this.props.onClickClose()}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -5,6 +5,7 @@ import * as R from 'ramda' ...@@ -5,6 +5,7 @@ import * as R from 'ramda'
import api from '../../../api' import api from '../../../api'
import Autocomplete from '@material-ui/lab/Autocomplete' import Autocomplete from '@material-ui/lab/Autocomplete'
import { format } from 'date-fns' import { format } from 'date-fns'
import Images from '../../../assets/Images'
export default class EditPerusahaan extends Component { export default class EditPerusahaan extends Component {
constructor(props) { constructor(props) {
...@@ -177,7 +178,7 @@ export default class EditPerusahaan extends Component { ...@@ -177,7 +178,7 @@ export default class EditPerusahaan extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.props.onClickClose()} onClick={() => this.props.onClickClose()}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -607,7 +607,7 @@ export default class Perusahaan extends Component { ...@@ -607,7 +607,7 @@ export default class Perusahaan extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.setState({ visibleUpload: false })} onClick={() => this.setState({ visibleUpload: false })}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -877,7 +877,7 @@ export default class ReportItems extends Component { ...@@ -877,7 +877,7 @@ export default class ReportItems extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.setState({ visibleUpload: false })} onClick={() => this.setState({ visibleUpload: false })}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -504,7 +504,7 @@ export default class UnitBisnis extends Component { ...@@ -504,7 +504,7 @@ export default class UnitBisnis extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.setState({ visibleUpload: false })} onClick={() => this.setState({ visibleUpload: false })}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -6,6 +6,7 @@ import Autocomplete from '@material-ui/lab/Autocomplete'; ...@@ -6,6 +6,7 @@ import Autocomplete from '@material-ui/lab/Autocomplete';
import { titleCase } from '../../../library/Utils'; import { titleCase } from '../../../library/Utils';
import format from "date-fns/format"; import format from "date-fns/format";
import { DatePicker } from '@material-ui/pickers'; import { DatePicker } from '@material-ui/pickers';
import Images from '../../../assets/Images';
export default class CreateReportItems extends Component { export default class CreateReportItems extends Component {
constructor(props) { constructor(props) {
...@@ -284,7 +285,7 @@ export default class CreateReportItems extends Component { ...@@ -284,7 +285,7 @@ export default class CreateReportItems extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.props.onClickClose()} onClick={() => this.props.onClickClose()}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -6,6 +6,7 @@ import Autocomplete from '@material-ui/lab/Autocomplete'; ...@@ -6,6 +6,7 @@ import Autocomplete from '@material-ui/lab/Autocomplete';
import api from '../../../api'; import api from '../../../api';
import * as R from 'ramda' import * as R from 'ramda'
import { titleCase } from '../../../library/Utils'; import { titleCase } from '../../../library/Utils';
import Images from '../../../assets/Images';
export default class EditReportItems extends Component { export default class EditReportItems extends Component {
constructor(props) { constructor(props) {
...@@ -305,7 +306,7 @@ export default class EditReportItems extends Component { ...@@ -305,7 +306,7 @@ export default class EditReportItems extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.props.onClickClose()} onClick={() => this.props.onClickClose()}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -3,6 +3,7 @@ import { TextField, Typography } from '@material-ui/core'; ...@@ -3,6 +3,7 @@ import { TextField, Typography } from '@material-ui/core';
import * as R from 'ramda' import * as R from 'ramda'
import { DateTimePicker, KeyboardDatePicker, DatePicker } from "@material-ui/pickers"; import { DateTimePicker, KeyboardDatePicker, DatePicker } from "@material-ui/pickers";
import format from "date-fns/format"; import format from "date-fns/format";
import Images from '../../../assets/Images';
export default class CreateUnitBisnis extends Component { export default class CreateUnitBisnis extends Component {
constructor(props) { constructor(props) {
...@@ -118,7 +119,7 @@ export default class CreateUnitBisnis extends Component { ...@@ -118,7 +119,7 @@ export default class CreateUnitBisnis extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.props.onClickClose()} onClick={() => this.props.onClickClose()}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
...@@ -306,7 +307,7 @@ export default class CreateUnitBisnis extends Component { ...@@ -306,7 +307,7 @@ export default class CreateUnitBisnis extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.props.onClickClose()} onClick={() => this.props.onClickClose()}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -550,7 +550,7 @@ export default class UserRole extends Component { ...@@ -550,7 +550,7 @@ export default class UserRole extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.setState({ visibleUpload: false })} onClick={() => this.setState({ visibleUpload: false })}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -9,6 +9,7 @@ import RemoveIcon from '@material-ui/icons/Remove'; ...@@ -9,6 +9,7 @@ import RemoveIcon from '@material-ui/icons/Remove';
import AddIcon from '@material-ui/icons/Add'; import AddIcon from '@material-ui/icons/Add';
import { DatePicker } from '@material-ui/pickers'; import { DatePicker } from '@material-ui/pickers';
import * as R from 'ramda' import * as R from 'ramda'
import Images from '../../../assets/Images';
const CustomCheckbox = withStyles({ const CustomCheckbox = withStyles({
root: { root: {
...@@ -274,7 +275,7 @@ export default class AddUser extends Component { ...@@ -274,7 +275,7 @@ export default class AddUser extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.props.onClickClose()} onClick={() => this.props.onClickClose()}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -8,6 +8,7 @@ import format from "date-fns/format"; ...@@ -8,6 +8,7 @@ import format from "date-fns/format";
import RemoveIcon from '@material-ui/icons/Remove'; import RemoveIcon from '@material-ui/icons/Remove';
import AddIcon from '@material-ui/icons/Add'; import AddIcon from '@material-ui/icons/Add';
import * as R from 'ramda' import * as R from 'ramda'
import Images from '../../../assets/Images';
const CustomCheckbox = withStyles({ const CustomCheckbox = withStyles({
root: { root: {
...@@ -310,7 +311,7 @@ export default class EditUser extends Component { ...@@ -310,7 +311,7 @@ export default class EditUser extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.props.onClickClose()} onClick={() => this.props.onClickClose()}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -7,6 +7,7 @@ import {DatePicker} from "@material-ui/pickers"; ...@@ -7,6 +7,7 @@ import {DatePicker} from "@material-ui/pickers";
import format from "date-fns/format"; import format from "date-fns/format";
import localeID from "date-fns/locale/id" import localeID from "date-fns/locale/id"
import * as R from 'ramda' import * as R from 'ramda'
import Images from '../../../assets/Images';
const CustomCheckbox = withStyles({ const CustomCheckbox = withStyles({
root: { root: {
...@@ -203,7 +204,7 @@ export default class AddRole extends Component { ...@@ -203,7 +204,7 @@ export default class AddRole extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.props.onClickClose()} onClick={() => this.props.onClickClose()}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
...@@ -6,6 +6,7 @@ import RemoveIcon from '@material-ui/icons/Remove'; ...@@ -6,6 +6,7 @@ import RemoveIcon from '@material-ui/icons/Remove';
import { DatePicker } from "@material-ui/pickers"; import { DatePicker } from "@material-ui/pickers";
import format from "date-fns/format"; import format from "date-fns/format";
import * as R from 'ramda' import * as R from 'ramda'
import Images from '../../../assets/Images';
const CustomCheckbox = withStyles({ const CustomCheckbox = withStyles({
root: { root: {
color: '#51c6ea', color: '#51c6ea',
...@@ -131,6 +132,7 @@ export default class EditRole extends Component { ...@@ -131,6 +132,7 @@ export default class EditRole extends Component {
getMenu() { getMenu() {
api.create().getMenu().then((response) => { api.create().getMenu().then((response) => {
if (response.data.status === 'success') { if (response.data.status === 'success') {
console.log(response.data.data)
this.setState({ menuData: response.data.data }) this.setState({ menuData: response.data.data })
} else { } else {
alert(response.data.message) alert(response.data.message)
...@@ -211,7 +213,7 @@ export default class EditRole extends Component { ...@@ -211,7 +213,7 @@ export default class EditRole extends Component {
className="btn btn-circle btn-white" className="btn btn-circle btn-white"
onClick={() => this.props.onClickClose()} onClick={() => this.props.onClickClose()}
> >
<i className="fa fa-lg fa-times" style={{ color: 'white' }} /> <img src={Images.close}/>
</button> </button>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment