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

28 lines
812 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. import React, { FC } from 'react'
  2. import { Link } from 'react-router-dom'
  3. import { useTheme } from '../hooks'
  4. import { App } from '../types'
  5. interface Props {
  6. app: App
  7. }
  8. const AppListItem: FC<Props> = ({ app }) => {
  9. const theme = useTheme()
  10. return (
  11. <div className="app-list-item" style={{ backgroundColor: theme.backgroundPrimary, borderColor: theme.backgroundSecondary }}>
  12. {app.imageUrl &&
  13. <div className="image">
  14. <img src={app.imageUrl} />
  15. </div>
  16. }
  17. <div>
  18. <Link to={`/a/${app.id}`} style={{ color: theme.primary }}>{app.name}</Link>
  19. {app.about && <p style={{ color: theme.text }}>{app.about}</p>}
  20. </div>
  21. </div>
  22. )
  23. }
  24. export default AppListItem