mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-22 15:10:57 -05:00
fix(header): server header rewrite
This commit is contained in:
parent
3a92cf06c3
commit
c655a59979
1 changed files with 11 additions and 0 deletions
|
@ -40,6 +40,7 @@ const ServerBanner = styled.div`
|
|||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
@ -105,6 +106,16 @@ export default observer(({ server }: Props) => {
|
|||
) : undefined}
|
||||
</div>
|
||||
<div className="test">{server.name}</div>
|
||||
{(server.permission & ServerPermission.ManageServer) >
|
||||
0 && (
|
||||
<div className="actions">
|
||||
<Link to={`/server/${server._id}/settings`}>
|
||||
<IconButton>
|
||||
<Cog size={20} />
|
||||
</IconButton>
|
||||
</Link>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</ServerBanner>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue