File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/components/cardknowledger Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ interface UserProps {
1414 username : string ;
1515 function : string ;
1616 role : string ;
17+ description : string ;
1718}
1819
1920export function CardKnowledger ( ) {
@@ -63,7 +64,14 @@ export function CardKnowledger() {
6364 </ div >
6465 </ div >
6566 < Link to = { `/users/${ user . username } ` } >
66- < button className = "bg-blue-400 w-full h-12 text-black rounded-full flex items-center justify-center font-bold" >
67+ < button
68+ disabled = { ! user . description }
69+ className = { `w-full h-12 rounded-full flex items-center justify-center font-bold ${
70+ ! user . description
71+ ? "bg-blue-400 text-black cursor-not-allowed opacity-35"
72+ : "bg-blue-400 text-black hover:bg-[#6eadf1]"
73+ } `}
74+ >
6775 Ver perfil
6876 </ button >
6977 </ Link >
You can’t perform that action at this time.
0 commit comments