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.
36 lines
745 B
36 lines
745 B
import React, { FC, useEffect } from 'react'
|
|
import { RouteComponentProps } from 'react-router'
|
|
|
|
import { Entity } from 'src/types'
|
|
|
|
interface Params {
|
|
id: string
|
|
}
|
|
|
|
export interface Props extends RouteComponentProps<Params> {
|
|
group?: Entity
|
|
fetchGroup: () => void
|
|
}
|
|
|
|
const RegisterGroup: FC<Props> = ({ group, fetchGroup }) => {
|
|
useEffect(() => {
|
|
fetchGroup()
|
|
}, [])
|
|
|
|
if (!group) {
|
|
return (
|
|
<div>
|
|
<h1 className="title">Community Not Found</h1>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
return (
|
|
<div>
|
|
<h1 className="title">{group.name}</h1>
|
|
<h2 className="subtitle">Create a new Account.</h2>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default RegisterGroup
|