[ABANDONED] React/Redux front end for the Flexor social network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

50 lines
1.7 KiB

import React, { FC, useEffect } from 'react'
import { useSelector, useDispatch } from 'react-redux'
import { Link } from 'react-router-dom'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faPlusCircle } from '@fortawesome/free-solid-svg-icons'
import { fetchSelfApps } from 'src/actions/apps'
import { getSelfApps } from 'src/selectors/apps'
import { setTitle } from 'src/utils'
import { AppState, App, AppThunkDispatch } from 'src/types'
import PageHeader from 'src/components/page-header'
const Developers: FC = () => {
const apps = useSelector<AppState, App[]>(getSelfApps)
const dispatch = useDispatch<AppThunkDispatch>()
useEffect(() => {
setTitle('Developers')
dispatch(fetchSelfApps())
}, [])
return (
<div>
<PageHeader title="Developers" />
<div className="main-content">
<div className="centered-content">
<h1 className="title has-text-success">Developer Documentation</h1>
<p>Flexor apps allow users to express themselves on the network.</p>
<br />
<p>Developer documentation coming soon.</p>
<hr />
<p>This is where you manage apps you create.</p>
<br />
<Link className="button is-primary" to="/developers/create">
<span className="icon is-small">
<FontAwesomeIcon icon={faPlusCircle} />
</span>
<span>Create a new App</span>
</Link>
</div>
</div>
</div>
)
}
export default Developers