From 80e035cedeb27ef9bf57f57f436bdeb923236ef7 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 17 Jan 2023 20:47:43 -0600 Subject: Remove leftover code --- src/view/com/lightbox/ProfileImage.tsx | 42 ---------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 src/view/com/lightbox/ProfileImage.tsx (limited to 'src/view/com/lightbox/ProfileImage.tsx') diff --git a/src/view/com/lightbox/ProfileImage.tsx b/src/view/com/lightbox/ProfileImage.tsx deleted file mode 100644 index 41417ea40..000000000 --- a/src/view/com/lightbox/ProfileImage.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import React from 'react' -import { - ActivityIndicator, - StyleSheet, - useWindowDimensions, - View, -} from 'react-native' -import {UserAvatar} from '../util/UserAvatar' -import {ProfileViewModel} from '../../../state/models/profile-view' - -export function Component({profileView}: {profileView: ProfileViewModel}) { - const winDim = useWindowDimensions() - const top = winDim.height / 2 - (winDim.width - 40) / 2 - 100 - const spinnerStyle = React.useMemo( - () => ({ - left: winDim.width / 2 - 30, - top: winDim.height / 2 - (winDim.width - 40) / 2 - 80, - }), - [winDim.width, winDim.height], - ) - return ( - - - - - ) -} - -const styles = StyleSheet.create({ - container: { - position: 'absolute', - left: 20, - }, - loading: { - position: 'absolute', - }, -}) -- cgit 1.4.1