RemoteContent: fix store access
@@ -2,10 +2,11 @@ import React, { Component, Fragment } from 'react';
import { BaseAnchor, BaseImage, Box, Button, Text } from '@tlon/indigo-react';
import { hasProvider } from 'oembed-parser';
import EmbedContainer from 'react-oembed-container';
-import { withSettingsState } from '~/logic/state/settings';
+import useSettingsState from '~/logic/state/settings';
import { RemoteContentPolicy } from '~/types/local-update';
import { VirtualContextProps, withVirtual } from "~/logic/lib/virtualContext";
import { IS_IOS } from '~/logic/lib/platform';
+import withState from '~/logic/lib/withState';
type RemoteContentProps = VirtualContextProps & {
url: string;
@@ -268,4 +269,4 @@ return;
}
}
-export default withSettingsState(withVirtual(RemoteContent), ['remoteContentPolicy']);
+export default withState(withVirtual(RemoteContent), [[useSettingsState, ['remoteContentPolicy']]]);
