Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

527 remove shortcuts #530

Merged
merged 3 commits into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions client/components/Application/Dialogs/FileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,6 @@ export default function FileUploadDialog() {
open={true}
aria-labelledby="dialog-title"
aria-describedby="dialog-description"
onKeyDown={(event) => {
if (event.key === 'F' || event.key === 'f') {
inputFileRef.current ? inputFileRef.current.click() : null
}
if (event.key === 'G' || event.key === 'g') {
inputFolderRef.current ? inputFolderRef.current.click() : null
}
}}
>
<IconButton
aria-label="close"
Expand Down Expand Up @@ -170,7 +162,7 @@ export default function FileUploadDialog() {
</Box>
<Box>Add one or more Excel or csv files </Box>
<StyledSelectBox className="file-select__button">
Select <span>F</span>
Select
</StyledSelectBox>
</Box>
</FileSelectBox>
Expand Down Expand Up @@ -200,7 +192,7 @@ export default function FileUploadDialog() {
</Box>
<Box>Add one or more folders</Box>
<StyledSelectBox className="file-select__button">
Select <span>G</span>
Select
</StyledSelectBox>
</Box>
</FileSelectBox>
Expand Down Expand Up @@ -320,6 +312,7 @@ const FileSelectBox = styled(Box)(() => ({
height: '100%',
width: '100%',
opacity: 0,
cursor: 'pointer',
},
':hover .file-select__button': {
backgroundColor: '#3F4345',
Expand All @@ -335,15 +328,6 @@ const StyledSelectBox = styled(Box)(() => ({
border: '0.5px solid #D3D7D8',
lineHeight: '20px',
boxShadow: '0px 0px 0px 0px rgba(0, 0, 0, 0.25)',
'& span': {
backgroundColor: '#4C5564',
fontSize: '12px',
padding: '2px 4px',
borderRadius: '2px',
lineHeight: 1,
color: 'white',
marginLeft: '4px',
},
}))

const StyledTextField = styled(TextField)(() => ({
Expand Down
Loading