CreatePerusahaan.js 28.8 KB
Newer Older
1 2
import React, { Component } from 'react';
import { TextField, Typography } from '@material-ui/core';
faisalhamdi's avatar
faisalhamdi committed
3 4 5
import * as R from 'ramda';
import { DateTimePicker, KeyboardDatePicker, DatePicker } from "@material-ui/pickers";
import format from "date-fns/format";
6 7

export default class CreatePerusahaan extends Component {
faisalhamdi's avatar
faisalhamdi committed
8 9 10 11 12 13 14
    constructor(props) {
        super(props)
        this.state = {
            id: '',
            company: '',
            parentCompany: '',
            unitBisnis: '',
faisalhamdi's avatar
faisalhamdi committed
15
            totalReport: '',
faisalhamdi's avatar
faisalhamdi committed
16 17 18 19 20
            startDate: '',
            endDate: ''

        }
    }
21 22 23 24 25
    render() {
        let { type } = this.props
        return type === 'edit' ? this.renderEdit() : this.renderCreate()
    }

faisalhamdi's avatar
faisalhamdi committed
26 27 28 29 30 31
    componentDidMount() {
        if (this.props.type === 'edit') {
            let data = this.props.data
            this.setState({
                id: data.company_id,
                company: data.company_name,
faisalhamdi's avatar
faisalhamdi committed
32 33
                parentCompany: data.parentName,
                unitBisnis: data.businessUnitName,
faisalhamdi's avatar
faisalhamdi committed
34
                totalReport: data.total_report,
faisalhamdi's avatar
faisalhamdi committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
                startDate: data.start_date,
                endDate: data.end_date
            })
        }
    }

    handleChange(e, type) {
        let data = this.state
        let isDate = type !== '' ? true : false
        if (isDate && type == 'start_date') {
            this.setState({ startDate: format(e, 'yyyy-MM-dd') }, () => {
                console.log(this.state.startDate)
            })
        } else if (isDate && type == 'end_date') {
            this.setState({ endDate: format(e, 'yyyy-MM-dd') }, () => {
                console.log(this.state.endDate)
            })
        } else {
            // this.setState({...data, tempData: {...this.state.tempData, [e.target.name] :  e.target.value}})
        }

    }

    validasi() {
faisalhamdi's avatar
faisalhamdi committed
59
        if (R.isEmpty(this.state.company)) return alert("Nama perusahaan harus diisi.");
faisalhamdi's avatar
faisalhamdi committed
60
        if (R.isEmpty(this.state.unitBisnis)) return alert("Unit Bisnis is Required.");
faisalhamdi's avatar
faisalhamdi committed
61
        if (R.isEmpty(this.state.parentCompany)) return alert("Parent Company is Required.");
faisalhamdi's avatar
faisalhamdi committed
62 63 64 65 66 67 68 69 70 71
        if (R.isEmpty(this.state.totalReport)) return alert("Total Report is Required.");
        if (!R.isEmpty(this.state.startDate) && !R.isEmpty(this.state.endDate) && (this.state.startDate > this.state.endDate)) return alert("Masa Berlaku Tidak Boleh Kurang Dari Tanggal Mulai");
        if (R.isEmpty(this.state.startDate)) return alert("Tanggal Mulai is Required.");
        if (R.isEmpty(this.state.endDate)) return alert("Tanggal Berakhir is Required.");
        console.log('masuk');
        if (this.props.type == 'edit') {
            let payload = {
                "company_id": this.state.id,
                "company_name": this.state.company,
                "business_unit_id": this.state.unitBisnis,
faisalhamdi's avatar
faisalhamdi committed
72 73
                "parent": this.state.parentCompany,
                "total_report": this.state.totalReport,
faisalhamdi's avatar
faisalhamdi committed
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
                "start_date": this.state.startDate,
                "end_date": this.state.endDate
            }
            this.props.updatePerusahaan(payload)
        } else if (this.props.type == 'create') {
            let payload = {
                "company_name": this.state.company,
                "parent": this.state.parentCompany,
                "business_unit_id": this.state.unitBisnis,
                "total_report": this.state.totalReport,
                "start_date": this.state.startDate,
                "end_date": this.state.endDate
            }
            this.props.createPerusahaan(payload)
        }

    }

92 93
    renderEdit() {
        return (
faisalhamdi's avatar
faisalhamdi committed
94
            <div className="test app-popup-show">
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
                <div className="popup-content background-white border-radius" style={{ borderRadius: 8 }}>
                    <div className="popup-panel grid grid-2x" style={{ backgroundColor: '#51c6ea', height: 64, borderTopRightRadius: 8, borderTopLeftRadius: 8 }}>
                        <div className="col-1" style={{ maxWidth: "inherit", display: 'flex', alignItems: 'center' }}>
                            <div className="popup-title">
                                <span style={{ color: '#fff', fontSize: 16, fontWeight: 'bold' }}>Ubah Data</span>
                            </div>
                        </div>
                        <div className="col-2 content-right" style={{ maxWidth: "inherit", alignSelf: 'center' }}>
                            <button
                                type="button"
                                className="btn btn-circle btn-white"
                                onClick={() => this.props.onClickClose()}
                            >
                                <i className="fa fa-lg fa-times" style={{ color: 'white' }} />
                            </button>
                        </div>
                    </div>


                    <div className="border-bottom grid grid-2x grid-mobile-none gap-15px" style={{ padding: 20 }}>
                        <div className="column-1">
faisalhamdi's avatar
faisalhamdi committed
116
                            <div style={{ backgroundColor: '#e8e8e8', padding: 10, borderRadius: 5 }}>
117 118
                                <TextField
                                    style={{ width: '100%' }}
faisalhamdi's avatar
faisalhamdi committed
119
                                    value={this.props.data.company_id}
120 121 122
                                    id="id"
                                    label="ID"
                                    disabled
faisalhamdi's avatar
faisalhamdi committed
123 124 125 126 127 128 129 130 131 132 133
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}
134 135
                                />
                            </div>
faisalhamdi's avatar
faisalhamdi committed
136
                            <div className="margin-top-10px" style={{ padding: 10, borderRadius: 5 }}>
137 138 139 140
                                <TextField
                                    style={{ width: '100%' }}
                                    id="unit"
                                    label="Unit Bisnis"
faisalhamdi's avatar
faisalhamdi committed
141
                                    value={this.state.unitBisnis}
faisalhamdi's avatar
faisalhamdi committed
142 143 144 145 146 147 148 149 150 151 152
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}
153 154 155
                                >
                                </TextField>
                            </div>
faisalhamdi's avatar
faisalhamdi committed
156
                            <div className="margin-top-10px" style={{ padding: 10, borderRadius: 5 }}>
faisalhamdi's avatar
faisalhamdi committed
157 158 159
                                <DatePicker
                                    margin="normal"
                                    id="startDate"
160
                                    label="Berlaku Mulai"
faisalhamdi's avatar
faisalhamdi committed
161 162 163 164 165 166
                                    format="dd MMMM yyyy"
                                    value={this.state.startDate}
                                    onChange={(e) => this.handleChange(e, 'start_date')}
                                    KeyboardButtonProps={{
                                        'aria-label': 'change date',
                                    }}
faisalhamdi's avatar
faisalhamdi committed
167 168 169 170 171 172 173 174 175 176 177
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}
faisalhamdi's avatar
faisalhamdi committed
178 179 180

                                    style={{ padding: 0, margin: 0, width: '100%' }}
                                />
181
                            </div>
faisalhamdi's avatar
faisalhamdi committed
182
                            <div className="margin-top-10px" style={{ backgroundColor: '#e8e8e8', padding: 10, borderRadius: 5 }}>
183 184
                                <TextField
                                    style={{ width: '100%' }}
faisalhamdi's avatar
faisalhamdi committed
185
                                    value={this.props.data.status}
186 187 188
                                    id="status"
                                    label="Status"
                                    disabled
faisalhamdi's avatar
faisalhamdi committed
189 190 191 192 193 194 195 196 197 198 199
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}
200 201 202
                                />
                            </div>

faisalhamdi's avatar
faisalhamdi committed
203
                            <div className="margin-top-10px" style={{ padding: 10, borderRadius: 5 }}>
faisalhamdi's avatar
faisalhamdi committed
204 205 206 207 208 209 210 211
                                <div style={{ display: 'flex' }}>
                                    <Typography style={{ fontSize: 11, width: '20%' }}>Dibuat</Typography>
                                    <Typography style={{ fontSize: 11 }}>: {this.props.data.created}</Typography>
                                </div>
                                <div style={{ display: 'flex' }}>
                                    <Typography style={{ fontSize: 11, width: '20%' }}>Diubah</Typography>
                                    <Typography style={{ fontSize: 11 }}>: {this.props.data.updated == - null ? "" : this.props.data.updated}</Typography>
                                </div>
212 213 214
                            </div>
                        </div>

faisalhamdi's avatar
faisalhamdi committed
215 216
                        <div className="column-2">
                            <div style={{ padding: 10, borderRadius: 5 }}>
217 218 219 220
                                <TextField
                                    style={{ width: '100%' }}
                                    id="perusahaan"
                                    label="Nama Perusahaan"
faisalhamdi's avatar
faisalhamdi committed
221
                                    value={this.state.company}
faisalhamdi's avatar
faisalhamdi committed
222 223 224 225 226 227 228 229 230 231 232
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}
faisalhamdi's avatar
faisalhamdi committed
233
                                    onChange={(e) => this.setState({ company: e.target.value })}
234 235 236
                                >
                                </TextField>
                            </div>
faisalhamdi's avatar
faisalhamdi committed
237
                            <div className="margin-top-10px" style={{ padding: 10, borderRadius: 5 }}>
238 239 240 241
                                <TextField
                                    style={{ width: '100%' }}
                                    id="parent"
                                    label="Parent Company"
faisalhamdi's avatar
faisalhamdi committed
242
                                    value={this.state.parentCompany}
faisalhamdi's avatar
faisalhamdi committed
243 244 245 246 247 248 249 250 251 252 253
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}
254 255 256
                                >
                                </TextField>
                            </div>
faisalhamdi's avatar
faisalhamdi committed
257
                            <div className="margin-top-10px" style={{ padding: 10, borderRadius: 5 }}>
faisalhamdi's avatar
faisalhamdi committed
258 259 260
                                <DatePicker
                                    margin="normal"
                                    id="endDate"
261
                                    label="Berlaku Hingga"
faisalhamdi's avatar
faisalhamdi committed
262 263 264 265 266 267
                                    format="dd MMMM yyyy"
                                    value={this.state.endDate}
                                    onChange={(e) => this.handleChange(e, 'end_date')}
                                    KeyboardButtonProps={{
                                        'aria-label': 'change date',
                                    }}
faisalhamdi's avatar
faisalhamdi committed
268 269 270 271 272 273 274 275 276 277 278
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}
faisalhamdi's avatar
faisalhamdi committed
279 280 281

                                    style={{ padding: 0, margin: 0, width: '100%' }}
                                />
282
                            </div>
faisalhamdi's avatar
faisalhamdi committed
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303
                            <div className="margin-top-10px" style={{ padding: 10, borderRadius: 5 }}>
                                <TextField
                                    style={{ width: '100%' }}
                                    id="report"
                                    label="Jumlah Laporan"
                                    value={this.state.totalReport}
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}
                                    onChange={(e) => this.setState({ totalReport: e.target.value })}
                                >
                                </TextField>
                            </div>
304 305 306 307 308
                        </div>
                    </div>

                    <div className="border-top grid grid-2x" style={{ height: 56, backgroundColor: '#f5f5f5', paddingLeft: 20, paddingRight: 20 }}>
                        <div className="column-1" style={{ alignSelf: 'center' }}>
faisalhamdi's avatar
faisalhamdi committed
309 310 311 312 313 314 315 316
                            <button
                                type="button"
                                onClick={() => this.props.onClickClose()}
                            >
                                <div style={{ width: 102, height: 30, border: 'solid 1px #354960', borderRadius: 5, alignItems: 'center', display: 'flex', justifyContent: 'center' }}>
                                    <span style={{ color: '#354960', fontSize: 11 }}>Batal</span>
                                </div>
                            </button>
317 318
                        </div>
                        <div className="column-2" style={{ display: 'flex', justifyContent: 'flex-end', alignItems: 'center' }}>
faisalhamdi's avatar
faisalhamdi committed
319 320 321 322 323 324 325 326
                            <button
                                type="button"
                                onClick={() => this.validasi()}
                            >
                                <div style={{ width: 102, height: 30, backgroundColor: '#354960', borderRadius: 5, alignItems: 'center', display: 'flex', justifyContent: 'center' }}>
                                    <span style={{ color: '#fff', fontSize: 11 }}>Simpan</span>
                                </div>
                            </button>
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357
                        </div>
                    </div>
                </div>
            </div>
        )
    }

    renderCreate() {
        return (
            <div className="test app-popup-show" style={{ paddingTop: 100 }}>
                <div className="popup-content background-white border-radius" style={{ borderRadius: 8 }}>
                    <div className="popup-panel grid grid-2x" style={{ backgroundColor: '#51c6ea', height: 64, borderTopRightRadius: 8, borderTopLeftRadius: 8 }}>
                        <div className="col-1" style={{ maxWidth: "inherit", display: 'flex', alignItems: 'center' }}>
                            <div className="popup-title">
                                <span style={{ color: '#fff', fontSize: 16, fontWeight: 'bold' }}>Create Data</span>
                            </div>
                        </div>
                        <div className="col-2 content-right" style={{ maxWidth: "inherit", alignSelf: 'center' }}>
                            <button
                                type="button"
                                className="btn btn-circle btn-white"
                                onClick={() => this.props.onClickClose()}
                            >
                                <i className="fa fa-lg fa-times" style={{ color: 'white' }} />
                            </button>
                        </div>
                    </div>


                    <div className="border-bottom grid grid-2x grid-mobile-none gap-15px" style={{ padding: 20 }}>
                        <div className="column-1">
faisalhamdi's avatar
faisalhamdi committed
358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376
                            <div style={{ backgroundColor: '#e8e8e8', padding: 10, borderRadius: 5 }}>
                                <TextField
                                    style={{ width: '100%' }}
                                    id="id"
                                    label="ID"
                                    disabled
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}
                                />
                            </div>
faisalhamdi's avatar
faisalhamdi committed
377 378 379 380 381
                            <div style={{ padding: 10, borderRadius: 5 }}>
                                <TextField
                                    style={{ width: '100%' }}
                                    id="unit"
                                    label="Unit Bisnis"
faisalhamdi's avatar
faisalhamdi committed
382
                                    value={this.state.unitBisnis}
faisalhamdi's avatar
faisalhamdi committed
383 384 385 386 387 388 389 390 391 392 393
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}
faisalhamdi's avatar
faisalhamdi committed
394
                                    onChange={(e) => this.setState({ unitBisnis: e.target.value })}
faisalhamdi's avatar
faisalhamdi committed
395 396 397 398
                                >
                                </TextField>
                            </div>
                            <div style={{ padding: 10, borderRadius: 5 }}>
399 400
                                <TextField
                                    style={{ width: '100%' }}
faisalhamdi's avatar
faisalhamdi committed
401 402 403
                                    id="report"
                                    label="Jumlah Laporan"
                                    value={this.state.totalReport}
faisalhamdi's avatar
faisalhamdi committed
404 405 406 407 408 409 410 411 412 413 414
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}
faisalhamdi's avatar
faisalhamdi committed
415
                                    onChange={(e) => this.setState({ totalReport: e.target.value })}
416 417 418
                                >
                                </TextField>
                            </div>
faisalhamdi's avatar
faisalhamdi committed
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444
                            <div style={{ padding: 10, borderRadius: 5 }}>
                                <DatePicker
                                    margin="normal"
                                    id="startDate"
                                    label="Berlaku Mulai"
                                    format="dd MMMM yyyy"
                                    value={this.state.startDate == "" ? null : this.state.startDate}
                                    onChange={(e) => this.handleChange(e, 'start_date')}
                                    KeyboardButtonProps={{
                                        'aria-label': 'change date',
                                    }}
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}

                                    style={{ padding: 0, margin: 0, width: '100%' }}
                                />
                            </div>
faisalhamdi's avatar
faisalhamdi committed
445
                            <div className="margin-top-10px" style={{ padding: 10, borderRadius: 5, backgroundColor: '#e8e8e8', }}>
446 447 448 449 450 451
                                <TextField
                                    style={{ width: '100%' }}
                                    defaultValue={"Aktif"}
                                    id="status"
                                    label="Status"
                                    disabled
faisalhamdi's avatar
faisalhamdi committed
452 453 454 455 456 457 458 459 460 461 462
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}
463 464 465
                                />
                            </div>

faisalhamdi's avatar
faisalhamdi committed
466
                            <div className="margin-top-10px" style={{ padding: 10, borderRadius: 5 }}>
467 468 469 470 471 472
                                <Typography style={{ fontSize: 11 }}>Dibuat	: Admin - 21 Jul 2020, 18:45</Typography>
                                <Typography style={{ fontSize: 11 }}>Diubah	: Admin - 21 Jul 2020, 18:45</Typography>
                            </div>
                        </div>

                        <div className="column-2">
faisalhamdi's avatar
faisalhamdi committed
473
                            <div style={{ padding: 10, borderRadius: 5 }}>
474 475
                                <TextField
                                    style={{ width: '100%' }}
faisalhamdi's avatar
faisalhamdi committed
476 477
                                    id="perusahaan"
                                    label="Nama Perusahaan"
faisalhamdi's avatar
faisalhamdi committed
478
                                    value={this.state.company}
faisalhamdi's avatar
faisalhamdi committed
479 480 481 482 483 484 485 486 487 488 489
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}
faisalhamdi's avatar
faisalhamdi committed
490
                                    onChange={(e) => this.setState({ company: e.target.value })}
491 492 493
                                >
                                </TextField>
                            </div>
faisalhamdi's avatar
faisalhamdi committed
494 495 496 497 498
                            <div style={{ padding: 10, borderRadius: 5 }}>
                                <TextField
                                    style={{ width: '100%' }}
                                    id="parentCompany"
                                    label="Parent Company"
faisalhamdi's avatar
faisalhamdi committed
499
                                    value={this.state.parentCompany}
faisalhamdi's avatar
faisalhamdi committed
500 501 502 503 504 505 506 507 508 509 510
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}
faisalhamdi's avatar
faisalhamdi committed
511
                                    onChange={(e) => this.setState({ parentCompany: e.target.value })}
faisalhamdi's avatar
faisalhamdi committed
512 513 514
                                >
                                </TextField>
                            </div>
faisalhamdi's avatar
faisalhamdi committed
515
                            <div style={{ padding: 10, borderRadius: 5 }}>
faisalhamdi's avatar
faisalhamdi committed
516 517 518
                                <DatePicker
                                    margin="normal"
                                    id="endDate"
519
                                    label="Berlaku Hingga"
faisalhamdi's avatar
faisalhamdi committed
520 521 522 523 524 525
                                    format="dd MMMM yyyy"
                                    value={this.state.endDate == "" ? null : this.state.endDate}
                                    onChange={(e) => this.handleChange(e, 'end_date')}
                                    KeyboardButtonProps={{
                                        'aria-label': 'change date',
                                    }}
faisalhamdi's avatar
faisalhamdi committed
526 527 528 529 530 531 532 533 534 535 536
                                    inputProps={{
                                        style: {
                                            fontSize: 11
                                        }
                                    }}
                                    InputLabelProps={{
                                        style: {
                                            fontSize: 11,
                                            color: '#7e8085'
                                        }
                                    }}
faisalhamdi's avatar
faisalhamdi committed
537 538 539

                                    style={{ padding: 0, margin: 0, width: '100%' }}
                                />
540 541 542 543 544 545 546
                            </div>
                        </div>

                    </div>

                    <div className="border-top grid grid-2x" style={{ height: 56, backgroundColor: '#f5f5f5', paddingLeft: 20, paddingRight: 20 }}>
                        <div className="column-1" style={{ alignSelf: 'center' }}>
faisalhamdi's avatar
faisalhamdi committed
547 548 549 550 551 552 553 554
                            <button
                                type="button"
                                onClick={() => this.props.onClickClose()}
                            >
                                <div style={{ width: 102, height: 30, border: 'solid 1px #354960', borderRadius: 5, alignItems: 'center', display: 'flex', justifyContent: 'center' }}>
                                    <span style={{ color: '#354960', fontSize: 11 }}>Batal</span>
                                </div>
                            </button>
555 556
                        </div>
                        <div className="column-2" style={{ display: 'flex', justifyContent: 'flex-end', alignItems: 'center' }}>
faisalhamdi's avatar
faisalhamdi committed
557 558 559 560 561 562 563 564
                            <button
                                type="button"
                                onClick={() => this.validasi()}
                            >
                                <div style={{ width: 102, height: 30, backgroundColor: '#354960', borderRadius: 5, alignItems: 'center', display: 'flex', justifyContent: 'center' }}>
                                    <span style={{ color: '#fff', fontSize: 11 }}>Simpan</span>
                                </div>
                            </button>
565 566 567 568 569 570 571
                        </div>
                    </div>
                </div>
            </div>
        );
    }
}