Join group button
This commit is contained in:
parent
b569f67fc1
commit
75907f6c18
|
@ -14,7 +14,7 @@ import {
|
||||||
} from 'web/lib/firebase/groups'
|
} from 'web/lib/firebase/groups'
|
||||||
import { Row } from 'web/components/layout/row'
|
import { Row } from 'web/components/layout/row'
|
||||||
import { UserLink } from 'web/components/user-page'
|
import { UserLink } from 'web/components/user-page'
|
||||||
import { getUser, User } from 'web/lib/firebase/users'
|
import { firebaseLogin, getUser, User } from 'web/lib/firebase/users'
|
||||||
import { Spacer } from 'web/components/layout/spacer'
|
import { Spacer } from 'web/components/layout/spacer'
|
||||||
import { Col } from 'web/components/layout/col'
|
import { Col } from 'web/components/layout/col'
|
||||||
import { useUser } from 'web/hooks/use-user'
|
import { useUser } from 'web/hooks/use-user'
|
||||||
|
@ -541,8 +541,11 @@ function JoinGroupButton(props: {
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<button onClick={joinGroup} className={'btn-md btn-outline btn '}>
|
<button
|
||||||
Join Group
|
onClick={user ? joinGroup : firebaseLogin}
|
||||||
|
className={'btn-md btn-outline btn whitespace-nowrap normal-case'}
|
||||||
|
>
|
||||||
|
{user ? 'Join group' : 'Login to join group'}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user