update timekeeping
This commit is contained in:
		
							parent
							
								
									3d01a822c8
								
							
						
					
					
						commit
						d9032f6f29
					
				| 
						 | 
				
			
			@ -171,7 +171,7 @@ const Timekeeping = () => {
 | 
			
		|||
                      user.history.find((h) => h.day === d)?.total ?? 0
 | 
			
		||||
                    return (
 | 
			
		||||
                      <Table.Td key={d} ta={'center'}>
 | 
			
		||||
                        {total / 60 / 60 < 8 && total !== 0 ? (
 | 
			
		||||
                        {total / 60 / 60 < 7 && total !== 0 ? (
 | 
			
		||||
                          <Tooltip
 | 
			
		||||
                            multiline
 | 
			
		||||
                            label={
 | 
			
		||||
| 
						 | 
				
			
			@ -225,7 +225,7 @@ const Timekeeping = () => {
 | 
			
		|||
                              }}
 | 
			
		||||
                            />
 | 
			
		||||
                          </Tooltip>
 | 
			
		||||
                        ) : total >= 8 ? (
 | 
			
		||||
                        ) : total >= 7 ? (
 | 
			
		||||
                          <Tooltip
 | 
			
		||||
                            multiline
 | 
			
		||||
                            label={
 | 
			
		||||
| 
						 | 
				
			
			@ -235,7 +235,34 @@ const Timekeeping = () => {
 | 
			
		|||
                                  .find((h) => h.day === d)
 | 
			
		||||
                                  ?.values.map((v) => {
 | 
			
		||||
                                    return (
 | 
			
		||||
                                      <p>{v.status + ': ' + v.time_string}</p>
 | 
			
		||||
                                      <Box
 | 
			
		||||
                                        style={{
 | 
			
		||||
                                          display: 'flex',
 | 
			
		||||
                                          alignItems: 'center',
 | 
			
		||||
                                          justifyContent: 'space-between',
 | 
			
		||||
                                        }}
 | 
			
		||||
                                      >
 | 
			
		||||
                                        <p>{v.status + ': ' + v.time_string}</p>{' '}
 | 
			
		||||
                                        {v.image && (
 | 
			
		||||
                                          <Image
 | 
			
		||||
                                            w={100}
 | 
			
		||||
                                            h={100}
 | 
			
		||||
                                            src={
 | 
			
		||||
                                              import.meta.env.VITE_BACKEND_URL.includes(
 | 
			
		||||
                                                'local',
 | 
			
		||||
                                              )
 | 
			
		||||
                                                ? import.meta.env
 | 
			
		||||
                                                    .VITE_BACKEND_URL +
 | 
			
		||||
                                                  'storage/' +
 | 
			
		||||
                                                  v.image
 | 
			
		||||
                                                : import.meta.env
 | 
			
		||||
                                                    .VITE_BACKEND_URL +
 | 
			
		||||
                                                  'image/storage/' +
 | 
			
		||||
                                                  v.image
 | 
			
		||||
                                            }
 | 
			
		||||
                                          />
 | 
			
		||||
                                        )}
 | 
			
		||||
                                      </Box>
 | 
			
		||||
                                    )
 | 
			
		||||
                                  })}
 | 
			
		||||
                              </div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue