We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a3afde commit 1d8ad18Copy full SHA for 1d8ad18
src/Components/Slot.luau
@@ -17,6 +17,7 @@ export type Props = {
17
}
18
19
local function SlotButton(props: Props)
20
+ -- Generate tags based on state
21
local tags = "Slot"
22
if props.unlocked then
23
tags = tags .. " Unlocked"
@@ -25,7 +26,11 @@ local function SlotButton(props: Props)
25
26
tags = tags .. " Equipped"
27
end
28
- local slotText = if props.toolImage == nil or "" then "" else props.toolName or ""
29
+ -- Hide the name if there is an image
30
+ local slotText = props.toolName
31
+ if props.toolImage and props.toolImage ~= "" then
32
+ slotText = ""
33
+ end
34
35
return React.createElement("TextButton", {
36
Text = slotText,
0 commit comments