The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

disable modal sub buttons on missing data

Luna e74b3142 f6253427

+13 -11
+2 -2
app/dashboard/[guildId]/custom-commands/create.component.tsx
··· 21 21 setTagId: (id: string) => void; 22 22 } 23 23 24 - export default function CreateTag({ guildId, style, addTag, setTagId }: Props) { 25 - 24 + export function CreateTag({ guildId, style, addTag, setTagId }: Props) { 26 25 const [open, setOpen] = useState(false); 27 26 const [name, setName] = useState(""); 28 27 ··· 64 63 addTag(tag); 65 64 setTagId(tag.id); 66 65 }} 66 + isDisabled={!name} 67 67 > 68 68 <DumbTextInput 69 69 name="Name"
+1 -1
app/dashboard/[guildId]/custom-commands/delete.component.tsx
··· 15 15 removeTag: (id: string) => void; 16 16 } 17 17 18 - export default function DeleteTag({ guildId, id, name, removeTag }: Props) { 18 + export function DeleteTag({ guildId, id, name, removeTag }: Props) { 19 19 20 20 const [open, setOpen] = useState(false); 21 21
+2 -2
app/dashboard/[guildId]/custom-commands/page.tsx
··· 17 17 import { Permissions } from "@/lib/discord/enum/permissions"; 18 18 import type { ApiV1GuildsModulesTagsGetResponse } from "@/typings"; 19 19 20 - import CreateTag, { Style } from "./create.component"; 21 - import DeleteTag from "./delete.component"; 20 + import { CreateTag, Style } from "./create.component"; 21 + import { DeleteTag } from "./delete.component"; 22 22 23 23 export default function Home() { 24 24 const guild = guildStore((g) => g);
+2 -1
app/dashboard/[guildId]/dailyposts/create.component.tsx
··· 24 24 set: (id: string) => void; 25 25 } 26 26 27 - export default function CreateDailypost({ 27 + export function CreateDailypost({ 28 28 style, 29 29 add, 30 30 set ··· 88 88 89 89 setChannelId(null); 90 90 }} 91 + isDisabled={!hours.length || !type || !channelId} 91 92 > 92 93 <SelectMenu 93 94 name="Channel"
+1 -1
app/dashboard/[guildId]/dailyposts/delete.component.tsx
··· 15 15 remove: (id: string) => void; 16 16 } 17 17 18 - export default function DeleteDailypost({ 18 + export function DeleteDailypost({ 19 19 id, 20 20 name, 21 21
+4 -4
app/dashboard/[guildId]/dailyposts/page.tsx
··· 16 16 import type { ApiV1GuildsModulesDailypostsGetResponse } from "@/typings"; 17 17 import { createSelectableItems } from "@/utils/create-selectable-items"; 18 18 19 - import CreateNotification, { Style } from "./create.component"; 20 - import DeleteDailypost from "./delete.component"; 19 + import { CreateDailypost, Style } from "./create.component"; 20 + import { DeleteDailypost } from "./delete.component"; 21 21 import { generateHourArray, typeToIcon, typeToName } from "./util"; 22 22 23 23 export default function Home() { ··· 66 66 docs="/dailyposts" 67 67 68 68 createButton={(options) => ( 69 - <CreateNotification 69 + <CreateDailypost 70 70 style={options.style} 71 71 add={addItem} 72 72 set={setItemId} ··· 109 109 name="dailyposts" 110 110 description="Send cute characters into your channels daily." 111 111 > 112 - <CreateNotification 112 + <CreateDailypost 113 113 style={Style.Big} 114 114 add={addItem} 115 115 set={setItemId}
+1
app/dashboard/[guildId]/updates.component.tsx
··· 70 70 return g; 71 71 }); 72 72 }} 73 + isDisabled={!channelId} 73 74 > 74 75 <SelectMenu 75 76 name="Channel"