File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
components/Chat/Input/Files Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { useLocalize } from '~/hooks' ;
2
+
1
3
export default function RemoveFile ( { onRemove } : { onRemove : ( ) => void } ) {
4
+ const localize = useLocalize ( ) ;
2
5
return (
3
6
< button
4
7
type = "button"
5
8
className = "absolute right-1 top-1 -translate-y-1/2 translate-x-1/2 rounded-full bg-surface-secondary p-0.5 transition-colors duration-200 hover:bg-surface-primary"
6
9
onClick = { onRemove }
10
+ aria-label = { localize ( 'com_ui_attach_remove' ) }
7
11
>
8
- < span >
12
+ < span aria-hidden = "true" >
9
13
< svg
10
14
stroke = "currentColor"
11
15
fill = "none"
Original file line number Diff line number Diff line change 509
509
"com_ui_attach_error_openai" : " Cannot attach Assistant files to other endpoints" ,
510
510
"com_ui_attach_error_size" : " File size limit exceeded for endpoint:" ,
511
511
"com_ui_attach_error_type" : " Unsupported file type for endpoint:" ,
512
+ "com_ui_attach_remove" : " Remove file" ,
512
513
"com_ui_attach_warn_endpoint" : " Non-Assistant files may be ignored without a compatible tool" ,
513
514
"com_ui_attachment" : " Attachment" ,
514
515
"com_ui_auth_type" : " Auth Type" ,
You can’t perform that action at this time.
0 commit comments