浏览代码

btn home pwd

amenpunk 2 年之前
父节点
当前提交
94ffc4a12b
共有 2 个文件被更改,包括 21 次插入6 次删除
  1. 11 0
      src/App.css
  2. 10 6
      src/Components/Home/Candidato.jsx

+ 11 - 0
src/App.css

406
   flex-wrap: wrap;
406
   flex-wrap: wrap;
407
   flex-direction: row;
407
   flex-direction: row;
408
 }
408
 }
409
+.pwd_info{
410
+  padding:10px;
411
+  border-right:1px solid #f1f1f1;
412
+  display: grid;
413
+  justify-items: center;
414
+  align-items: center;
415
+}
416
+.btn_pwd{
417
+  color:white !important;
418
+  background:var(--main) !important;
419
+}

+ 10 - 6
src/Components/Home/Candidato.jsx

2
 import {
2
 import {
3
   Skeleton, Box, IconButton, TableCell, TableContainer,
3
   Skeleton, Box, IconButton, TableCell, TableContainer,
4
   Table, TableRow, Paper, TableBody,
4
   Table, TableRow, Paper, TableBody,
5
-  Tooltip,
5
+  Tooltip,Button
6
 } from '@mui/material';
6
 } from '@mui/material';
7
 import {
7
 import {
8
   CheckBox as CheckBoxIcon,
8
   CheckBox as CheckBoxIcon,
87
     <TableRow >
87
     <TableRow >
88
       <TableCell
88
       <TableCell
89
         style={{ borderRight: '1px solid #f1f1f1 !important' }}
89
         style={{ borderRight: '1px solid #f1f1f1 !important' }}
90
-        className="home_letter pwd_user_name ">
90
+        className="home_letter pwd_user_name pwd_info">
91
         {candi.nombre + " " + candi.apellidos}
91
         {candi.nombre + " " + candi.apellidos}
92
       </TableCell>
92
       </TableCell>
93
-      <TableCell className="table_list_test_user home_letter">
93
+      <TableCell className="table_list_test_user home_letter pwd_info">
94
         <table>
94
         <table>
95
           <tbody >
95
           <tbody >
96
             {
96
             {
123
   return (
123
   return (
124
     <div className="data_candidato">
124
     <div className="data_candidato">
125
       <Row>
125
       <Row>
126
-        <Col onClick={props.onClick}  md="3" sm="12" style={{ padding: 10, borderRight: '1px solid #f1f1f1' }}>
127
-          <p><b>{password?.toUpperCase()}</b></p>
126
+
127
+        <Col className="pwd_info"pwd_name_candi onClick={props.onClick}  md="3" sm="12">
128
+          <Button className="btn_pwd" variant="contained">
129
+            <u><p><b style={{color:'white'}}>{password?.toUpperCase()}</b></p></u>
130
+          </Button>
128
         </Col>
131
         </Col>
129
-        <Col md="9">
132
+
133
+        <Col className="pwd_info" md="9">
130
           <TableContainer style={{ boxShadow: "none" }} component={Paper}>
134
           <TableContainer style={{ boxShadow: "none" }} component={Paper}>
131
             <Table size="small" aria-label="a dense table">
135
             <Table size="small" aria-label="a dense table">
132
               <TableBody>
136
               <TableBody>