fix(header): server header rewrite

This commit is contained in:
trashtemp 2021-12-27 15:13:36 +01:00
parent 3a92cf06c3
commit c655a59979
No known key found for this signature in database
GPG key ID: D1F0DB65081B0FC6

View file

@ -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>