浏览代码

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,3 +406,14 @@
406 406
   flex-wrap: wrap;
407 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,7 +2,7 @@ import React from 'react'
2 2
 import {
3 3
   Skeleton, Box, IconButton, TableCell, TableContainer,
4 4
   Table, TableRow, Paper, TableBody,
5
-  Tooltip,
5
+  Tooltip,Button
6 6
 } from '@mui/material';
7 7
 import {
8 8
   CheckBox as CheckBoxIcon,
@@ -87,10 +87,10 @@ function TableUser(props) {
87 87
     <TableRow >
88 88
       <TableCell
89 89
         style={{ borderRight: '1px solid #f1f1f1 !important' }}
90
-        className="home_letter pwd_user_name ">
90
+        className="home_letter pwd_user_name pwd_info">
91 91
         {candi.nombre + " " + candi.apellidos}
92 92
       </TableCell>
93
-      <TableCell className="table_list_test_user home_letter">
93
+      <TableCell className="table_list_test_user home_letter pwd_info">
94 94
         <table>
95 95
           <tbody >
96 96
             {
@@ -123,10 +123,14 @@ export function Candidato(props) {
123 123
   return (
124 124
     <div className="data_candidato">
125 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 131
         </Col>
129
-        <Col md="9">
132
+
133
+        <Col className="pwd_info" md="9">
130 134
           <TableContainer style={{ boxShadow: "none" }} component={Paper}>
131 135
             <Table size="small" aria-label="a dense table">
132 136
               <TableBody>