You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

352 lines
20 KiB

  1. import React from "react";
  2. import classNames from "classnames";
  3. import { makeStyles } from "@material-ui/core/styles";
  4. import Select from 'react-select';
  5. import People from "@material-ui/icons/People";
  6. import LocationOn from "@material-ui/icons/LocationOn";
  7. import Lock from "@material-ui/icons/Lock";
  8. import image1 from "../../../assets/img/mail.png"
  9. import CustomInput from "components/CustomInput/CustomInput.js";
  10. import InputAdornment from "@material-ui/core/InputAdornment";
  11. import Button from "components/CustomButtons/Button.js";
  12. import Icon from "@material-ui/core/Icon";
  13. import Card from "components/Card/Card.js";
  14. import CardBody from "components/Card/CardBody.js";
  15. import GridContainer from "components/Grid/GridContainer.js";
  16. import SnackbarContent from "components/Snackbar/SnackbarContent.js";
  17. import NavPills from "components/NavPills/NavPills.js";
  18. import styles from "assets/jss/nextjs-material-kit/pages/componentsSections/pillsStyle.js";
  19. import Grid from '@material-ui/core/Grid';
  20. import Paper from '@material-ui/core/Paper';
  21. const useStyles = makeStyles((theme) => ({
  22. root: {
  23. flexGrow: 1,
  24. },
  25. paper: {
  26. padding: theme.spacing(2),
  27. textAlign: 'center',
  28. color: theme.palette.text.secondary,
  29. },
  30. }));
  31. const DataApparel = function ({ selected, handleName, backend, apparel, asia, basic, merchand, maxi, rainsuit, motogp, offroad, ...props }) {
  32. const [pass, setPass] = React.useState("");
  33. const classes = useStyles();
  34. const { ...rest } = props;
  35. const imageClasses = classNames(
  36. classes.imgRaised,
  37. classes.imgRoundedCircle,
  38. classes.imgFluid
  39. );
  40. const navImageClasses = classNames(classes.imgRounded, classes.imgGallery);
  41. return (
  42. <div>
  43. <Card className={classes.textCenter} align="center">
  44. <CardBody>
  45. <div align="center">
  46. <div align="center" className={classes.section} id="notifications" style={{marginTop:"-50px"}}>
  47. <SnackbarContent
  48. message={
  49. <h4>Profile</h4>
  50. }
  51. align="center"
  52. color="info"
  53. />
  54. </div>
  55. <GridContainer justify="center" style={{padding: "10px"}}>
  56. <NavPills
  57. color="info"
  58. horizontal={{
  59. tabsGrid: { xs: 4, sm: 3, md: 3 },
  60. contentGrid: { xs: 14, sm: 9, md: 9 }
  61. }}
  62. tabs={[
  63. {
  64. tabButton: "Profile",
  65. tabIcon: People,
  66. tabContent: (
  67. <Grid container>
  68. <Grid item xs={12}>
  69. <div align="left">
  70. <h3>Profile Saya</h3>
  71. <span>Kelola informasi profil Anda untuk mengontrol, melindungi dan mengamankan akun</span><hr></hr>
  72. </div>
  73. </Grid>
  74. <Grid container style={{padding:"10px"}}>
  75. <Grid item xs>
  76. <div align="left">
  77. Username
  78. </div>
  79. </Grid>
  80. <Grid item xs={6}>
  81. <div align="left">
  82. : Yusmar15
  83. </div>
  84. </Grid>
  85. <Grid item xs>
  86. </Grid>
  87. </Grid>
  88. <Grid container style={{padding:"10px"}}>
  89. <Grid item xs>
  90. <div align="left">
  91. Nama
  92. </div>
  93. </Grid>
  94. <Grid item xs={6}>
  95. <div align="left">
  96. : Yusmar
  97. </div>
  98. </Grid>
  99. <Grid item xs>
  100. </Grid>
  101. </Grid>
  102. <Grid container style={{padding:"10px"}}>
  103. <Grid item xs>
  104. <div align="left">
  105. Email
  106. </div>
  107. </Grid>
  108. <Grid item xs={6}>
  109. <div align="left">
  110. : yusmardianto@thamrin.co.id
  111. </div>
  112. </Grid>
  113. <Grid item xs>
  114. </Grid>
  115. </Grid>
  116. <Grid container style={{padding:"10px"}}>
  117. <Grid item xs>
  118. <div align="left">
  119. Nomer Telpon
  120. </div>
  121. </Grid>
  122. <Grid item xs={6}>
  123. <div align="left">
  124. : 087797315685
  125. </div>
  126. </Grid>
  127. <Grid item xs>
  128. </Grid>
  129. </Grid>
  130. <Grid container style={{padding:"10px"}}>
  131. <Grid item xs>
  132. <div align="left">
  133. Jenis Kelamin
  134. </div>
  135. </Grid>
  136. <Grid item xs={6}>
  137. <div align="left">
  138. : Laki - Laki
  139. </div>
  140. </Grid>
  141. <Grid item xs>
  142. </Grid>
  143. </Grid>
  144. <Button
  145. color="info" round
  146. href={"/yamaha/product/product_detail?s="}
  147. >
  148. <Icon className={classes.icons}>open_in_new</Icon>Edit Profile
  149. </Button>
  150. </Grid>
  151. )
  152. },
  153. {
  154. tabButton: "Alamat",
  155. tabIcon: LocationOn,
  156. tabContent: (
  157. <Grid container>
  158. <Grid item xs={12}>
  159. <div align="left">
  160. <h3>Alamat Saya</h3>
  161. <span>Kelola informasi Alamat Anda untuk Proses Pengirim Barang</span>
  162. </div><hr></hr>
  163. </Grid>
  164. <img src={image1} style={{width:"920px"}}/><br></br>
  165. <Grid container style={{padding:"10px"}}>
  166. <Grid item xs>
  167. <div align="left">
  168. Nama
  169. </div>
  170. </Grid>
  171. <Grid item xs={6}>
  172. <div align="left">
  173. : Yusmar
  174. </div>
  175. </Grid>
  176. <Grid item xs>
  177. </Grid>
  178. </Grid>
  179. <Grid container style={{padding:"10px"}}>
  180. <Grid item xs>
  181. <div align="left">
  182. Telpon
  183. </div>
  184. </Grid>
  185. <Grid item xs={6}>
  186. <div align="left">
  187. : 087797315685
  188. </div>
  189. </Grid>
  190. <Grid item xs>
  191. </Grid>
  192. </Grid>
  193. <Grid container style={{padding:"10px"}}>
  194. <Grid item xs>
  195. <div align="left">
  196. Alamat
  197. </div>
  198. </Grid>
  199. <Grid item xs={6}>
  200. <div align="left">
  201. : Thamrin Indrapura Jl.Aipda Karel Satsuit Tubun,17 Ilir, Kec.Ilir Tim.I, Palembang, KOTA PALEMBANG - ILIR TIMUR II, SUMATERA SELATAN, ID 30114
  202. </div>
  203. </Grid>
  204. <Grid item xs>
  205. </Grid>
  206. </Grid>
  207. <Button
  208. color="info" round
  209. href={"/yamaha/product/product_detail?s="}
  210. >
  211. <Icon className={classes.icons}>open_in_new</Icon>Edit Alamat
  212. </Button>
  213. </Grid>
  214. )
  215. },
  216. {
  217. tabButton: "Ubah Password",
  218. tabIcon: Lock,
  219. tabContent: (
  220. <Grid container>
  221. <Grid item xs={12}>
  222. <div align="left">
  223. <h3>Ubah Password</h3>
  224. <span>Untuk keamanan akun Anda, mohon untuk tidak menyebarkan password Anda ke orang lain</span>
  225. </div><hr></hr>
  226. </Grid>
  227. <Grid container style={{padding:"10px"}}>
  228. <Grid item xs>
  229. <div align="left">
  230. <br></br>
  231. Password Saat Ini
  232. </div>
  233. </Grid>
  234. <Grid item xs={6}>
  235. <div align="left">
  236. <CustomInput
  237. labelText="Password Saat Ini"
  238. id="pass"
  239. value={pass}
  240. formControlProps={{
  241. fullWidth: true,
  242. }}
  243. inputProps={{
  244. onChange: (event) => setPass(event.target.value),
  245. type: "password",
  246. endAdornment: (
  247. <InputAdornment position="end">
  248. <Icon className={classes.inputIconsColor}>
  249. lock_outline
  250. </Icon>
  251. </InputAdornment>
  252. ),
  253. autoComplete: "off",
  254. }}
  255. />
  256. </div>
  257. </Grid>
  258. <Grid item xs>
  259. </Grid>
  260. </Grid>
  261. <Grid container style={{padding:"10px"}}>
  262. <Grid item xs>
  263. <div align="left">
  264. <br></br>
  265. Password Baru
  266. </div>
  267. </Grid>
  268. <Grid item xs={6}>
  269. <div align="left">
  270. <CustomInput
  271. labelText="Password Baru"
  272. id="pass"
  273. value={pass}
  274. formControlProps={{
  275. fullWidth: true,
  276. }}
  277. inputProps={{
  278. onChange: (event) => setPass(event.target.value),
  279. type: "password",
  280. endAdornment: (
  281. <InputAdornment position="end">
  282. <Icon className={classes.inputIconsColor}>
  283. lock_outline
  284. </Icon>
  285. </InputAdornment>
  286. ),
  287. autoComplete: "off",
  288. }}
  289. />
  290. </div>
  291. </Grid>
  292. <Grid item xs>
  293. </Grid>
  294. </Grid>
  295. <Grid container style={{padding:"10px"}}>
  296. <Grid item xs>
  297. <div align="left">
  298. <br></br>
  299. Konfirmasi Password
  300. </div>
  301. </Grid>
  302. <Grid item xs={6}>
  303. <div align="left">
  304. <CustomInput
  305. labelText="Konfirmasi Password"
  306. id="pass"
  307. value={pass}
  308. formControlProps={{
  309. fullWidth: true,
  310. }}
  311. inputProps={{
  312. onChange: (event) => setPass(event.target.value),
  313. type: "password",
  314. endAdornment: (
  315. <InputAdornment position="end">
  316. <Icon className={classes.inputIconsColor}>
  317. lock_outline
  318. </Icon>
  319. </InputAdornment>
  320. ),
  321. autoComplete: "off",
  322. }}
  323. />
  324. </div>
  325. </Grid>
  326. <Grid item xs>
  327. </Grid>
  328. </Grid>
  329. <Button
  330. color="info" round
  331. href={"/yamaha/product/product_detail?s="}
  332. >
  333. <Icon className={classes.icons}>open_in_new</Icon> Simpan
  334. </Button>
  335. </Grid>
  336. )
  337. }
  338. ]}
  339. />
  340. </GridContainer>
  341. </div><br></br><br></br>
  342. </CardBody>
  343. </Card>
  344. </div>
  345. );
  346. }
  347. export default DataApparel;