mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-03-11 17:45:30 +00:00
hotfix GUI 2
This commit is contained in:
parent
0961a97b85
commit
e74ead4faf
2 changed files with 6 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { Box, List, ListItem, Typography, Divider, Dialog, Select, MenuItem, FormControl, InputLabel, Checkbox } from '@mui/material';
|
||||
import { CheckBox, CheckBoxOutlineBlank } from '@mui/icons-material';
|
||||
import React from 'react';
|
||||
import React, { RefObject } from 'react';
|
||||
import useStore from '../../../../hooks/useStore';
|
||||
import ContextMenu from '../../../reusable/ContextMenu';
|
||||
import { useSnackbar } from 'notistack';
|
||||
|
|
@ -130,7 +130,7 @@ const EpisodeListing: React.FC = () => {
|
|||
onClick: () => {
|
||||
window.open(item.img);
|
||||
}
|
||||
} ]} popupItem={imageRef} />
|
||||
} ]} popupItem={imageRef as RefObject<HTMLElement>} />
|
||||
<ContextMenu options={[
|
||||
{
|
||||
onClick: async () => {
|
||||
|
|
@ -141,7 +141,7 @@ const EpisodeListing: React.FC = () => {
|
|||
},
|
||||
text: 'Copy summary to clipboard'
|
||||
}
|
||||
]} popupItem={summaryRef} />
|
||||
]} popupItem={summaryRef as RefObject<HTMLElement>} />
|
||||
{index < length - 1 && <Divider />}
|
||||
</Box>;
|
||||
})}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import React from 'react';
|
||||
import React, { RefObject } from 'react';
|
||||
import { Box, ClickAwayListener, Divider, List, ListItem, Paper, TextField, Typography } from '@mui/material';
|
||||
import { SearchResponse } from '../../../../../../@types/messageHandler';
|
||||
import useStore from '../../../hooks/useStore';
|
||||
|
|
@ -92,7 +92,7 @@ const SearchBox: React.FC = () => {
|
|||
onClick: () => {
|
||||
window.open(a.image);
|
||||
}
|
||||
} ]} popupItem={imageRef} />
|
||||
} ]} popupItem={imageRef as RefObject<HTMLElement>} />
|
||||
{a.desc &&
|
||||
<ContextMenu options={[
|
||||
{
|
||||
|
|
@ -104,7 +104,7 @@ const SearchBox: React.FC = () => {
|
|||
},
|
||||
text: 'Copy summary to clipboard'
|
||||
}
|
||||
]} popupItem={summaryRef} />
|
||||
]} popupItem={summaryRef as RefObject<HTMLElement>} />
|
||||
}
|
||||
{(ind < arr.length - 1) && <Divider />}
|
||||
</Box>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue