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
 | 
					                      user.history.find((h) => h.day === d)?.total ?? 0
 | 
				
			||||||
                    return (
 | 
					                    return (
 | 
				
			||||||
                      <Table.Td key={d} ta={'center'}>
 | 
					                      <Table.Td key={d} ta={'center'}>
 | 
				
			||||||
                        {total / 60 / 60 < 8 && total !== 0 ? (
 | 
					                        {total / 60 / 60 < 7 && total !== 0 ? (
 | 
				
			||||||
                          <Tooltip
 | 
					                          <Tooltip
 | 
				
			||||||
                            multiline
 | 
					                            multiline
 | 
				
			||||||
                            label={
 | 
					                            label={
 | 
				
			||||||
| 
						 | 
					@ -225,7 +225,7 @@ const Timekeeping = () => {
 | 
				
			||||||
                              }}
 | 
					                              }}
 | 
				
			||||||
                            />
 | 
					                            />
 | 
				
			||||||
                          </Tooltip>
 | 
					                          </Tooltip>
 | 
				
			||||||
                        ) : total >= 8 ? (
 | 
					                        ) : total >= 7 ? (
 | 
				
			||||||
                          <Tooltip
 | 
					                          <Tooltip
 | 
				
			||||||
                            multiline
 | 
					                            multiline
 | 
				
			||||||
                            label={
 | 
					                            label={
 | 
				
			||||||
| 
						 | 
					@ -235,7 +235,34 @@ const Timekeeping = () => {
 | 
				
			||||||
                                  .find((h) => h.day === d)
 | 
					                                  .find((h) => h.day === d)
 | 
				
			||||||
                                  ?.values.map((v) => {
 | 
					                                  ?.values.map((v) => {
 | 
				
			||||||
                                    return (
 | 
					                                    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>
 | 
					                              </div>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue