Compare commits

..

No commits in common. "aaf72d9122154fb6c822801fe24b33403c052106" and "9efd40e48cba262e0583f8fe8bc436da75e404fd" have entirely different histories.

4 changed files with 16 additions and 21 deletions

View file

@ -127,7 +127,6 @@ function PlanexWebview(props: Props) {
onMessage={props.onMessage} onMessage={props.onMessage}
showAdvancedControls={false} showAdvancedControls={false}
showControls={props.currentGroup !== undefined} showControls={props.currentGroup !== undefined}
incognito={true}
/> />
{!props.currentGroup ? ( {!props.currentGroup ? (
<ErrorView <ErrorView

View file

@ -71,8 +71,7 @@ export default function RequestScreen<T>(props: Props<T>) {
if (props.refresh !== lastRefresh.current) { if (props.refresh !== lastRefresh.current) {
lastRefresh.current = props.refresh === true; lastRefresh.current = props.refresh === true;
} }
// eslint-disable-next-line react-hooks/exhaustive-deps }, [props, loading, refreshData]);
}, [props, loading]);
useFocusEffect( useFocusEffect(
React.useCallback(() => { React.useCallback(() => {
@ -90,8 +89,7 @@ export default function RequestScreen<T>(props: Props<T>) {
clearInterval(refreshInterval.current); clearInterval(refreshInterval.current);
} }
}; };
// eslint-disable-next-line react-hooks/exhaustive-deps }, [props.cache, props.refreshOnFocus, props.autoRefreshTime, refreshData])
}, [props.cache, props.refreshOnFocus, props.autoRefreshTime])
); );
const isErrorCritical = (e: API_REQUEST_CODES | undefined) => { const isErrorCritical = (e: API_REQUEST_CODES | undefined) => {

View file

@ -58,7 +58,6 @@ type Props = {
customPaddingFunction?: null | ((padding: number) => string); customPaddingFunction?: null | ((padding: number) => string);
showAdvancedControls?: boolean; showAdvancedControls?: boolean;
showControls?: boolean; showControls?: boolean;
incognito?: boolean;
}; };
const AnimatedWebView = Animated.createAnimatedComponent(WebView); const AnimatedWebView = Animated.createAnimatedComponent(WebView);
@ -273,7 +272,6 @@ function WebViewScreen(props: Props) {
onLoad={() => injectJavaScript(getJavascriptPadding(containerPaddingTop))} onLoad={() => injectJavaScript(getJavascriptPadding(containerPaddingTop))}
// Animations // Animations
onScroll={onScrollWithListener(onScroll)} onScroll={onScrollWithListener(onScroll)}
incognito={props.incognito}
/> />
); );
} }

View file

@ -101,13 +101,13 @@ export const CustomWhiteTheme: ReactNativePaper.Theme = {
// Tetris // Tetris
tetrisBackground: '#f0f0f0', tetrisBackground: '#f0f0f0',
tetrisScore: '#e2bd33', tetrisScore: '#e2bd33',
tetrisI: '#be1522', tetrisI: '#3cd9e6',
tetrisO: '#EB6C1F', tetrisO: '#ffdd00',
tetrisT: '#5cb85c', tetrisT: '#a716e5',
tetrisS: '#5294E2', tetrisS: '#09c528',
tetrisZ: '#dede00', tetrisZ: '#ff0009',
tetrisJ: '#69009d', tetrisJ: '#2a67e3',
tetrisL: '#553716', tetrisL: '#da742d',
gameGold: '#ffd610', gameGold: '#ffd610',
gameSilver: '#7b7b7b', gameSilver: '#7b7b7b',
@ -160,13 +160,13 @@ export const CustomDarkTheme: ReactNativePaper.Theme = {
// Tetris // Tetris
tetrisBackground: '#181818', tetrisBackground: '#181818',
tetrisScore: '#e2d707', tetrisScore: '#e2d707',
tetrisI: '#be1522', tetrisI: '#30b3be',
tetrisO: '#EB6C1F', tetrisO: '#c1a700',
tetrisT: '#5cb85c', tetrisT: '#9114c7',
tetrisS: '#5294E2', tetrisS: '#08a121',
tetrisZ: '#dede00', tetrisZ: '#b50008',
tetrisJ: '#69009d', tetrisJ: '#0f37b9',
tetrisL: '#553716', tetrisL: '#b96226',
gameGold: '#ffd610', gameGold: '#ffd610',
gameSilver: '#7b7b7b', gameSilver: '#7b7b7b',