Skip to content

Commit

Permalink
Removed strict mode on tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
mkargus committed Jun 4, 2024
1 parent 6b1b9df commit fa2b128
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Components/Tooltip.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
--!strict
-- Based off of the Rojo's tooltip.
-- https://github.com/rojo-rbx/rojo/blob/master/plugin/src/App/Components/Tooltip.lua
local HttpService = game:GetService('HttpService')
Expand All @@ -19,14 +18,8 @@ local OFFSET = Vector2.new(13, 5)

local TooltipContext = React.createContext({})

type PopupProp = {
Position: Vector2,
Size: Vector2,
Text: string
}

-- Popup
local function Popup(props: PopupProp)
local function Popup(props)
local theme = useTheme()

local TextSize = TextSerice:GetTextSize(props.Text, 14, Enum.Font.Gotham, Vector2.new(160, math.huge))
Expand Down

0 comments on commit fa2b128

Please sign in to comment.