import React from "react";
import classNames from "classnames";
import { makeStyles, useTheme } from '@material-ui/core/styles';
import Dashboard from "@material-ui/icons/Dashboard";
import GridContainer from "components/Grid/GridContainer.js";
import GridItem from "components/Grid/GridItem.js";
import NavPills from "components/NavPills/NavPills.js";
import Card from "components/Card/Card.js";
import CardBody from "components/Card/CardBody.js";
import CardHeader from "components/Card/CardHeader.js";
import Grid from '@material-ui/core/Grid';
import Button from "components/CustomButtons/Button.js";
import Icon from "@material-ui/core/Icon";
import CustomInput from "components/CustomInput/CustomInput.js";
import InputAdornment from "@material-ui/core/InputAdornment";
import Paper from '@material-ui/core/Paper';
import Accordion from '@material-ui/core/Accordion';
import AccordionDetails from '@material-ui/core/AccordionDetails';
import AccordionSummary from '@material-ui/core/AccordionSummary';
import Typography from '@material-ui/core/Typography';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import PropTypes from 'prop-types';
import SwipeableViews from 'react-swipeable-views';
import AppBar from '@material-ui/core/AppBar';
import Tabs from '@material-ui/core/Tabs';
import Tab from '@material-ui/core/Tab';
import Box from '@material-ui/core/Box';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';
import DialogTitle from '@material-ui/core/DialogTitle';
import stylecss from "pages-sections/yamaha/profile/profile.css"
import Voucher1 from 'assets/img/Group1.png';
import stylecsss from "pages/home.css";
const useStyles = makeStyles((theme) => ({
root: {
backgroundColor: theme.palette.background.paper,
width: '100%',
},
heading: {
fontSize: theme.typography.pxToRem(15),
flexBasis: '33.33%',
flexShrink: 0,
},
secondaryHeading: {
fontSize: theme.typography.pxToRem(15),
color: theme.palette.text.secondary,
},
}));
function TabPanel(props) {
const { children, value, index, ...other } = props;
return (
{value === index && (
{children}
)}
);
}
TabPanel.propTypes = {
children: PropTypes.node,
index: PropTypes.any.isRequired,
value: PropTypes.any.isRequired,
};
function a11yProps(index) {
return {
id: `full-width-tab-${index}`,
'aria-controls': `full-width-tabpanel-${index}`,
};
}
const DataProfile = function ({ profile, user, ...props }) {
const classes = useStyles();
const [pass, setPass] = React.useState("");
const { ...rest } = props;
const imageClasses = classNames(
classes.imgRaised,
classes.imgRoundedCircle,
classes.imgFluid
);
const navImageClasses = classNames(classes.imgRounded, classes.imgGallery);
const theme = useTheme();
const [value, setValue] = React.useState(0);
const handleChange = (event, newValue) => {
setValue(newValue);
};
const handleChangeIndex = (index) => {
setValue(index);
};
const [open, setOpen] = React.useState(false);
const [scroll, setScroll] = React.useState('paper');
const handleClickOpen = (scrollType) => () => {
setOpen(true);
setScroll(scrollType);
};
const handleClose = () => {
setOpen(false);
};
const descriptionElementRef = React.useRef(null);
React.useEffect(() => {
if (open) {
const { current: descriptionElement } = descriptionElementRef;
if (descriptionElement !== null) {
descriptionElement.focus();
}
}
}, [open]);
const AkunSaya = profile.map((data) => {
const classes = useStyles();
const [expanded, setExpanded] = React.useState(false);
const handleChange = (panel) => (event, isExpanded) => {
setExpanded(isExpanded ? panel : false);
};
return (
}
aria-controls="panel1bh-content"
id="panel1bh-header"
>
Profil Saya
Kelola informasi profil Anda untuk mengontrol, melindungi dan mengamankan akun
Username
: {data.username}
Nama
: {data.firstName}
Email
: {data.email}
Tanggal Lahir
: 15 Mei 1998
Jenis Kelamin
: Laki - Laki
Nomer Telpon
: {data.telp}
Alamat
: {data.address}
open_in_new Edit Profile
}
aria-controls="panel3bh-content"
id="panel3bh-header"
>
Ubah Password Saya
Kelola Password Saya Untuk Meningkatkan Keamanan Akun Anda
Password Saat Ini
:
setPass(event.target.value),
type: "password",
endAdornment: (
lock_outline
),
autoComplete: "off"
}} />
Password Baru
:
setPass(event.target.value),
type: "password",
endAdornment: (
lock_outline
),
autoComplete: "off"
}} />
Confirm Password
:
setPass(event.target.value),
type: "password",
endAdornment: (
lock_outline
),
autoComplete: "off"
}} />
open_in_new
Simpan
);
})
const Notifikasi = profile.map((data) => {
const classes = useStyles();
const [expanded, setExpanded] = React.useState(false);
const handleChange = (panel) => (event, isExpanded) => {
setExpanded(isExpanded ? panel : false);
};
return (
}
aria-controls="panel1bh-content"
id="panel1bh-header"
>
Profil Saya
Kelola informasi profil Anda untuk mengontrol, melindungi dan mengamankan akun
Username
: {data.username}
Nama
: {data.firstName}
Email
: {data.email}
Tanggal Lahir
: 15 Mei 1998
Jenis Kelamin
: Laki - Laki
Nomer Telpon
: {data.telp}
Alamat
: {data.address}
open_in_new Edit Profile
}
aria-controls="panel3bh-content"
id="panel3bh-header"
>
Ubah Password Saya
Kelola Password Saya Untuk Meningkatkan Keamanan Akun Anda
Password Saat Ini
:
setPass(event.target.value),
type: "password",
endAdornment: (
lock_outline
),
autoComplete: "off"
}} />
Password Baru
:
setPass(event.target.value),
type: "password",
endAdornment: (
lock_outline
),
autoComplete: "off"
}} />
Confirm Password
:
setPass(event.target.value),
type: "password",
endAdornment: (
lock_outline
),
autoComplete: "off"
}} />
open_in_new
Simpan
);
})
const Voucher = profile.map((data) => {
return (
Voucher Gratis Ongkir
s/d: 19.09.2021
Pakai Voucher
S&K
Syarat & Ketentuan Penggunaan Voucher
Voucher Gratis Ongkir
s/d: 19.09.2021
Promosi
Voucher Gratis Ongkir
Masa Berlaku
13.09.2021 00:00 - 19.09.2021 23:59
Produk
Produk bertanda Gratis Ongkir di E-Commerce Yamaha
Metode Pembayaran
Semua metode pembayaran
S&K
Voucher Gratis Ongkir ini berlaku untuk semua toko berlogo Gratis Ongkir di E-Commerce Yamaha. Berlaku pada 13-19
September 2021 WIB sesuai ketentuan berikut : --
1. Semua toko bertanda Gratis Ongkir dengan menggunakan
pengiriman Reguler atau Hemat dengan min. belanja 30RB dan potongan s/d 10RB untuk pengiriman ke Area Sumatera Selatan dan Bengkulu.
2. Semua toko bertanda Gratis Ongkir
dengan menggunakan pengiriman Reguler atau Hemat dengan min. belanja 30RB dan potongan s/d 25RB untuk
pengiriman ke Sumatera Selatan.
3. Semua toko bertanda Gratis
Ongkir dengan menggunakan pengiriman Reguler atau Hemat dengan min. belanja 30RB dan potongan s/d 30RB
untuk pengiriman ke Sumatera Selatan dan Bengkulu --
Cek S&K selengkapnya di halaman Gratis Ongkir E-Commerce Yamaha.
Dengan menggunakan Voucher ini, Anda telah menyetujui Syarat Layanan E-Commerce Yamaha.
Cancel
Subscribe
);
})
return (
Profile
Profile & User Management
{AkunSaya}
),
},
{
tabButton: "Notifikasi",
tabIcon: Dashboard,
tabContent: (
{Notifikasi}
),
},
{
tabButton: "Voucher Saya",
tabIcon: Dashboard,
tabContent: (
{Voucher}
),
},
]}
/>
);
}
export default DataProfile;