Bổ sung view badge cho nội dung level
This commit is contained in:
		
							parent
							
								
									67516faa3d
								
							
						
					
					
						commit
						9d0dd9bbab
					
				| 
						 | 
				
			
			@ -198,17 +198,24 @@ const StaffEvaluation = () => {
 | 
			
		|||
      size: '10%',
 | 
			
		||||
      header: 'Level',
 | 
			
		||||
      render: (row: any) => {
 | 
			
		||||
        if (row.level)
 | 
			
		||||
          return (
 | 
			
		||||
            <div
 | 
			
		||||
              style={{
 | 
			
		||||
                display: 'flex',
 | 
			
		||||
                justifyContent: 'center',
 | 
			
		||||
              }}
 | 
			
		||||
            >
 | 
			
		||||
              {row?.level}
 | 
			
		||||
            </div>
 | 
			
		||||
          )
 | 
			
		||||
        return (
 | 
			
		||||
          <Box
 | 
			
		||||
            style={
 | 
			
		||||
              row?.level
 | 
			
		||||
                ? row?.level === 1
 | 
			
		||||
                  ? { backgroundColor: '#d9d2e9' }
 | 
			
		||||
                  : row?.level === 2
 | 
			
		||||
                  ? { backgroundColor: '#ffd966' }
 | 
			
		||||
                  : { backgroundColor: '#cfe2f3' }
 | 
			
		||||
                : { backgroundColor: '' }
 | 
			
		||||
            }
 | 
			
		||||
            fw={500}
 | 
			
		||||
            ta="center"
 | 
			
		||||
            p={4}
 | 
			
		||||
          >
 | 
			
		||||
            {row?.level ? row.level : ''}
 | 
			
		||||
          </Box>
 | 
			
		||||
        )
 | 
			
		||||
      },
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue