1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Chore: Mobile: Remove no-longer-necessary Icon warning workaround (#10301)

This commit is contained in:
Henry Heino 2024-04-15 10:16:24 -07:00 committed by GitHub
parent 385fe7bbe0
commit 86d9f7e1cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 0 additions and 34 deletions

View File

@ -8,11 +8,6 @@ const { _ } = require('@joplin/lib/locale');
import shim from '@joplin/lib/shim';
import Setting from '@joplin/lib/models/Setting';
// We need this to suppress the useless warning
// https://github.com/oblador/react-native-vector-icons/issues/1465
// eslint-disable-next-line no-console, @typescript-eslint/no-explicit-any -- Old code before rule was applied
Icon.loadFont().catch((error: any) => { console.info(error); });
class CameraView extends Component {
public constructor() {
super();

View File

@ -25,11 +25,6 @@ import { ContainerType } from '@joplin/lib/services/plugins/WebviewController';
import { Dispatch } from 'redux';
import WarningBanner from './WarningBanner';
// We need this to suppress the useless warning
// https://github.com/oblador/react-native-vector-icons/issues/1465
// eslint-disable-next-line no-console, @typescript-eslint/no-explicit-any -- Old code before rule was applied
Icon.loadFont().catch((error: any) => { console.info(error); });
// Rather than applying a padding to the whole bar, it is applied to each
// individual component (button, picker, etc.) so that the touchable areas
// are widder and to give more room to the picker component which has a larger

View File

@ -2,10 +2,6 @@ const React = require('react');
const Component = React.Component;
const { View, TouchableHighlight } = require('react-native');
const Icon = require('react-native-vector-icons/Ionicons').default;
// We need this to suppress the useless warning
// https://github.com/oblador/react-native-vector-icons/issues/1465
// eslint-disable-next-line no-console
Icon.loadFont().catch((error) => { console.info(error); });
const styles = {
checkboxIcon: {

View File

@ -11,11 +11,6 @@ import { AppState } from '../../utils/types';
import { TagEntity } from '@joplin/lib/services/database/types';
const naturalCompare = require('string-natural-compare');
// We need this to suppress the useless warning
// https://github.com/oblador/react-native-vector-icons/issues/1465
// eslint-disable-next-line no-console, @typescript-eslint/no-explicit-any -- Old code before rule was applied
Icon.loadFont().catch((error: any) => { console.info(error); });
interface Props {
themeId: number;
noteId: string|null;

View File

@ -15,11 +15,6 @@ import SearchEngine from '@joplin/lib/services/search/SearchEngine';
import { AppState } from '../../utils/types';
import { NoteEntity } from '@joplin/lib/services/database/types';
// We need this to suppress the useless warning
// https://github.com/oblador/react-native-vector-icons/issues/1465
// eslint-disable-next-line no-console, @typescript-eslint/no-explicit-any -- Old code before rule was applied
Icon.loadFont().catch((error: any) => { console.info(error); });
class SearchScreenComponent extends BaseScreenComponent {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied

View File

@ -5,11 +5,6 @@ const { connect } = require('react-redux');
const Icon = require('react-native-vector-icons/Ionicons').default;
const { themeStyle } = require('./global-style');
// We need this to suppress the useless warning
// https://github.com/oblador/react-native-vector-icons/issues/1465
// eslint-disable-next-line no-console
Icon.loadFont().catch((error) => { console.info(error); });
class SideMenuContentNoteComponent extends Component {
constructor() {
super();

View File

@ -20,11 +20,6 @@ import emptyTrash from '@joplin/lib/services/trash/emptyTrash';
import { ModelType } from '@joplin/lib/BaseModel';
const { substrWithEllipsis } = require('@joplin/lib/string-utils');
// We need this to suppress the useless warning
// https://github.com/oblador/react-native-vector-icons/issues/1465
// eslint-disable-next-line no-console, @typescript-eslint/no-explicit-any -- Old code before rule was applied
Icon.loadFont().catch((error: any) => { console.info(error); });
interface Props {
syncStarted: boolean;
themeId: number;