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:
parent
385fe7bbe0
commit
86d9f7e1cb
@ -8,11 +8,6 @@ const { _ } = require('@joplin/lib/locale');
|
|||||||
import shim from '@joplin/lib/shim';
|
import shim from '@joplin/lib/shim';
|
||||||
import Setting from '@joplin/lib/models/Setting';
|
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 {
|
class CameraView extends Component {
|
||||||
public constructor() {
|
public constructor() {
|
||||||
super();
|
super();
|
||||||
|
@ -25,11 +25,6 @@ import { ContainerType } from '@joplin/lib/services/plugins/WebviewController';
|
|||||||
import { Dispatch } from 'redux';
|
import { Dispatch } from 'redux';
|
||||||
import WarningBanner from './WarningBanner';
|
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
|
// Rather than applying a padding to the whole bar, it is applied to each
|
||||||
// individual component (button, picker, etc.) so that the touchable areas
|
// 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
|
// are widder and to give more room to the picker component which has a larger
|
||||||
|
@ -2,10 +2,6 @@ const React = require('react');
|
|||||||
const Component = React.Component;
|
const Component = React.Component;
|
||||||
const { View, TouchableHighlight } = require('react-native');
|
const { View, TouchableHighlight } = require('react-native');
|
||||||
const Icon = require('react-native-vector-icons/Ionicons').default;
|
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 = {
|
const styles = {
|
||||||
checkboxIcon: {
|
checkboxIcon: {
|
||||||
|
@ -11,11 +11,6 @@ import { AppState } from '../../utils/types';
|
|||||||
import { TagEntity } from '@joplin/lib/services/database/types';
|
import { TagEntity } from '@joplin/lib/services/database/types';
|
||||||
const naturalCompare = require('string-natural-compare');
|
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 {
|
interface Props {
|
||||||
themeId: number;
|
themeId: number;
|
||||||
noteId: string|null;
|
noteId: string|null;
|
||||||
|
@ -15,11 +15,6 @@ import SearchEngine from '@joplin/lib/services/search/SearchEngine';
|
|||||||
import { AppState } from '../../utils/types';
|
import { AppState } from '../../utils/types';
|
||||||
import { NoteEntity } from '@joplin/lib/services/database/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 {
|
class SearchScreenComponent extends BaseScreenComponent {
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||||
|
@ -5,11 +5,6 @@ const { connect } = require('react-redux');
|
|||||||
const Icon = require('react-native-vector-icons/Ionicons').default;
|
const Icon = require('react-native-vector-icons/Ionicons').default;
|
||||||
const { themeStyle } = require('./global-style');
|
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 {
|
class SideMenuContentNoteComponent extends Component {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
@ -20,11 +20,6 @@ import emptyTrash from '@joplin/lib/services/trash/emptyTrash';
|
|||||||
import { ModelType } from '@joplin/lib/BaseModel';
|
import { ModelType } from '@joplin/lib/BaseModel';
|
||||||
const { substrWithEllipsis } = require('@joplin/lib/string-utils');
|
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 {
|
interface Props {
|
||||||
syncStarted: boolean;
|
syncStarted: boolean;
|
||||||
themeId: number;
|
themeId: number;
|
||||||
|
Loading…
Reference in New Issue
Block a user