Skip to content

Commit

Permalink
REmove title from props
Browse files Browse the repository at this point in the history
  • Loading branch information
gitpancake authored and hiporox committed May 7, 2024
1 parent d16aa22 commit 8d358c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/fidgets/example/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { FidgetEditConfig, makeFidget } from "../../common/fidgets/makeFidget";

export type ChannelFidgetSettings = {
channel: string;
title: string;
};

const channelFidgetConfig: FidgetEditConfig = {
Expand Down Expand Up @@ -42,7 +41,7 @@ const isWebUrl = (url: string) => {
return url.match(/^(http|https):\/\//) != null;
};

const Channel: React.FC<ChannelFidgetSettings> = ({ channel, title }: ChannelFidgetSettings) => {
const Channel: React.FC<ChannelFidgetSettings> = ({ channel }: ChannelFidgetSettings) => {
const { data: channelCasts, isLoading: castsLoading } = useGetChannelCasts(channel);
const { data: channelInfo, isLoading: channelInfoLoading } = useLookupChannel(channel);

Expand Down
4 changes: 2 additions & 2 deletions src/pages/homebase/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default function Homebase(spaceID) {
const availableHandles = ["s", "w", "e", "n", "sw", "nw", "se", "ne"];

const [fidgetConfigs, setFidgetConfigs] = useState([
{ f: <ChannelFidget title="Bright Moments" channel="bright-moments" />, resizeHandles: availableHandles, x: 0, y: 0, w: 4, minW: 1, h: 8, minH: 1 },
{ f: <ChannelFidget title="Invaders" channel="invaders" />, resizeHandles: availableHandles, x: 4, y: 0, w: 4, minW: 1, h: 8, minH: 1 },
{ f: <ChannelFidget channel="bright-moments" />, resizeHandles: availableHandles, x: 0, y: 0, w: 4, minW: 1, h: 8, minH: 1 },
{ f: <ChannelFidget channel="invaders" />, resizeHandles: availableHandles, x: 4, y: 0, w: 4, minW: 1, h: 8, minH: 1 },
]);

function switchMode() {
Expand Down

0 comments on commit 8d358c1

Please sign in to comment.