Skip to content

Commit

Permalink
[frontend] fix eslint error
Browse files Browse the repository at this point in the history
Signed-off-by: Marine LM <[email protected]>
  • Loading branch information
MarineLeM committed Oct 14, 2024
1 parent d492950 commit 895345f
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion openbas-front/src/actions/User.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as schema from './Schema';
import { delReferential, getReferential, postReferential, putReferential, simplePostCall } from '../utils/Action';
import * as Constants from '../constants/ActionTypes';

// region players
export const fetchPlayers = () => (dispatch) => getReferential(schema.arrayOfUsers, '/api/players')(dispatch);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-ignore
import pdfMake from 'pdfmake';

type PdfMakeText = pdfMake.Content;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { toPng } from 'html-to-image';
// @ts-ignore
import pdfMake from 'pdfmake';
import type { InjectResultDTO, Report } from '../../../../../utils/api-types';
import convertMarkdownToPdfMake from './convertMarkdownToPdfMake';
Expand Down
2 changes: 0 additions & 2 deletions openbas-front/src/components/ExportPdfButton.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import React, { useState } from 'react';
import { Dialog, ToggleButton, Tooltip } from '@mui/material';
import { FilePdfBox } from 'mdi-material-ui';
// @ts-ignore
import pdfMake from 'pdfmake';
// @ts-ignore
import pdfFonts from 'pdfmake/build/vfs_fonts';

import { useDispatch } from 'react-redux';
Expand Down
1 change: 0 additions & 1 deletion openbas-front/src/utils/Localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -2146,7 +2146,6 @@ const i18n = {
'Score details': '分数详情',
'Injects results': '注入结果',
'Global observation': '全球观察',
'Global observation': '全球观察',
'This report is not available': '该报告不可用',
'Simulation definition statistics': '模拟定义统计',
'Simulation definition scores': '模拟定义分数',
Expand Down

0 comments on commit 895345f

Please sign in to comment.