mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 17:41:33 +03:00
groups: surface description in right hand pane
As per @urcades
This commit is contained in:
parent
a210d96fb3
commit
a1d18cf360
@ -183,6 +183,9 @@ export function GroupsPane(props: GroupsPaneProps) {
|
|||||||
<Route
|
<Route
|
||||||
path={relativePath("")}
|
path={relativePath("")}
|
||||||
render={(routeProps) => {
|
render={(routeProps) => {
|
||||||
|
const hasDescription = groupAssociation?.metadata?.description;
|
||||||
|
const description = (hasDescription && hasDescription !== "")
|
||||||
|
? hasDescription : "Create or select a channel to get started"
|
||||||
return (
|
return (
|
||||||
<Skeleton recentGroups={recentGroups} {...props} baseUrl={baseUrl}>
|
<Skeleton recentGroups={recentGroups} {...props} baseUrl={baseUrl}>
|
||||||
<Col
|
<Col
|
||||||
@ -190,8 +193,8 @@ export function GroupsPane(props: GroupsPaneProps) {
|
|||||||
justifyContent="center"
|
justifyContent="center"
|
||||||
display={["none", "flex"]}
|
display={["none", "flex"]}
|
||||||
>
|
>
|
||||||
<Box><Text fontSize="1">
|
<Box><Text fontSize="0" color='gray'>
|
||||||
Open something, or create a channel to get started
|
{description}
|
||||||
</Text></Box>
|
</Text></Box>
|
||||||
</Col>
|
</Col>
|
||||||
{popovers(routeProps, baseUrl)}
|
{popovers(routeProps, baseUrl)}
|
||||||
|
Loading…
Reference in New Issue
Block a user