diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-17 20:47:43 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-17 20:47:43 -0600 |
commit | 80e035cedeb27ef9bf57f57f436bdeb923236ef7 (patch) | |
tree | 2153dc7a3dd02a874760dcc2e3669877267b2749 /src/view/com/lightbox/ProfileImage.tsx | |
parent | a3e9a0691e9dbbf1c46f6b3969c559dff9d64d6f (diff) | |
download | voidsky-80e035cedeb27ef9bf57f57f436bdeb923236ef7.tar.zst |
Remove leftover code
Diffstat (limited to 'src/view/com/lightbox/ProfileImage.tsx')
-rw-r--r-- | src/view/com/lightbox/ProfileImage.tsx | 42 |
1 files changed, 0 insertions, 42 deletions
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 ( - <View style={[styles.container, {top}]}> - <ActivityIndicator style={[styles.loading, spinnerStyle]} size="large" /> - <UserAvatar - handle={profileView.handle} - displayName={profileView.displayName} - avatar={profileView.avatar} - size={winDim.width - 40} - /> - </View> - ) -} - -const styles = StyleSheet.create({ - container: { - position: 'absolute', - left: 20, - }, - loading: { - position: 'absolute', - }, -}) |