mirror of
https://github.com/DerTyp7/teamspeak-obs-overlay.git
synced 2025-10-29 21:02:10 +01:00
[feature] add boolean to show channel name
This commit is contained in:
@@ -51,6 +51,7 @@ export default function App() {
|
|||||||
return (
|
return (
|
||||||
<div className="App">
|
<div className="App">
|
||||||
<Viewer
|
<Viewer
|
||||||
|
showChannelName={true}
|
||||||
clients={
|
clients={
|
||||||
clients.map((client) => {
|
clients.map((client) => {
|
||||||
if (client.channel?.id === currentChannel?.id) {
|
if (client.channel?.id === currentChannel?.id) {
|
||||||
|
|||||||
@@ -4,13 +4,15 @@ import "@styles/Viewer.scss";
|
|||||||
export default function Viewer({
|
export default function Viewer({
|
||||||
clients,
|
clients,
|
||||||
channel,
|
channel,
|
||||||
|
showChannelName = false,
|
||||||
}: {
|
}: {
|
||||||
clients: IClient[] | undefined;
|
clients: IClient[] | undefined;
|
||||||
channel: IChannel | undefined;
|
channel: IChannel | undefined;
|
||||||
|
showChannelName?: boolean;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<div className="viewer">
|
<div className="viewer">
|
||||||
<h3>{channel?.properties.name}</h3>
|
{showChannelName ? <h3>{channel?.properties.name}</h3> : null}
|
||||||
{clients?.map((client) => {
|
{clients?.map((client) => {
|
||||||
if (client) {
|
if (client) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user