about summary refs log tree commit diff
path: root/src/view/com/onboard/Follows.web.tsx
blob: 50e119e49cfda66d748dd47aa19f258ee9a2e68e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import React from 'react'
import {SafeAreaView, StyleSheet, TouchableOpacity, View} from 'react-native'
import {observer} from 'mobx-react-lite'
import {SuggestedFollows} from '../discover/SuggestedFollows'
import {CenteredView} from '../util/Views.web'
import {Text} from '../util/text/Text'
import {useStores} from '../../../state'
import {s, colors} from '../../lib/styles'

export const Follows = observer(() => {
  const store = useStores()

  const onNoSuggestions = () => {
    // no suggestions, bounce from this view
    store.onboard.next()
  }
  const onPressNext = () => store.onboard.next()

  return (
    <SafeAreaView style={styles.container}>
      <CenteredView style={styles.header}>
        <Text type="title-lg">
          Follow these people to see their posts in your feed
        </Text>
        <TouchableOpacity onPress={onPressNext}>
          <Text style={[styles.title, s.blue3, s.pr10]}>Next &raquo;</Text>
        </TouchableOpacity>
      </CenteredView>
      <SuggestedFollows onNoSuggestions={onNoSuggestions} />
    </SafeAreaView>
  )
})

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  title: {
    fontSize: 24,
    fontWeight: 'bold',
  },

  header: {
    paddingTop: 30,
    paddingBottom: 40,
  },
})