[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.

27 lines
723 B

5 years ago
4 years ago
5 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
  1. import React, { FC, useEffect } from 'react'
  2. import { useHistory } from 'react-router-dom'
  3. import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
  4. import { faPlusCircle } from '@fortawesome/free-solid-svg-icons'
  5. import { setTitle } from '../utils'
  6. const UserApps: FC = () => {
  7. const history = useHistory()
  8. useEffect(() => {
  9. setTitle('Your Apps')
  10. }, [])
  11. return (
  12. <div>
  13. <button onClick={() => history.push('/apps/new')}>
  14. <span className="button-icon">
  15. <FontAwesomeIcon icon={faPlusCircle} />
  16. </span>
  17. <span>Create a new App</span>
  18. </button>
  19. </div>
  20. )
  21. }
  22. export default UserApps