Adds darkmode support for "Liked by" screen (#94)
* Adds darkmode support for "Liked by" screen * changes based on feedback * variable namingzio/stable
parent
5f18931915
commit
adf328b50c
|
@ -7,7 +7,8 @@ import {Text} from '../util/text/Text'
|
||||||
import {ErrorMessage} from '../util/error/ErrorMessage'
|
import {ErrorMessage} from '../util/error/ErrorMessage'
|
||||||
import {UserAvatar} from '../util/UserAvatar'
|
import {UserAvatar} from '../util/UserAvatar'
|
||||||
import {useStores} from '../../../state'
|
import {useStores} from '../../../state'
|
||||||
import {s, colors} from '../../lib/styles'
|
import {s} from '../../lib/styles'
|
||||||
|
import {usePalette} from '../../lib/hooks/usePalette'
|
||||||
|
|
||||||
export const PostVotedBy = observer(function PostVotedBy({
|
export const PostVotedBy = observer(function PostVotedBy({
|
||||||
uri,
|
uri,
|
||||||
|
@ -76,9 +77,11 @@ export const PostVotedBy = observer(function PostVotedBy({
|
||||||
})
|
})
|
||||||
|
|
||||||
const LikedByItem = ({item}: {item: VotesItem}) => {
|
const LikedByItem = ({item}: {item: VotesItem}) => {
|
||||||
|
const pal = usePalette('default')
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
style={styles.outer}
|
style={[styles.outer, pal.view]}
|
||||||
href={`/profile/${item.actor.handle}`}
|
href={`/profile/${item.actor.handle}`}
|
||||||
title={item.actor.handle}
|
title={item.actor.handle}
|
||||||
noFeedback>
|
noFeedback>
|
||||||
|
@ -92,10 +95,12 @@ const LikedByItem = ({item}: {item: VotesItem}) => {
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.layoutContent}>
|
<View style={styles.layoutContent}>
|
||||||
<Text style={[s.f15, s.bold]}>
|
<Text style={[s.f15, s.bold, pal.text]}>
|
||||||
{item.actor.displayName || item.actor.handle}
|
{item.actor.displayName || item.actor.handle}
|
||||||
</Text>
|
</Text>
|
||||||
<Text style={[s.f14, s.gray5]}>@{item.actor.handle}</Text>
|
<Text style={[s.f14, s.gray5, pal.textLight]}>
|
||||||
|
@{item.actor.handle}
|
||||||
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -105,7 +110,6 @@ const LikedByItem = ({item}: {item: VotesItem}) => {
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
outer: {
|
outer: {
|
||||||
marginTop: 1,
|
marginTop: 1,
|
||||||
backgroundColor: colors.white,
|
|
||||||
},
|
},
|
||||||
layout: {
|
layout: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
|
|
Loading…
Reference in New Issue