-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
41 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
components/widget/match/summary/widget_match_summary_row.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
-- @Liquipedia | ||
-- wiki=commons | ||
-- page=Module:Widget/Match/Summary/Row | ||
-- | ||
-- Please see https://github.com/Liquipedia/Lua-Modules to contribute | ||
-- | ||
|
||
local Class = require('Module:Class') | ||
local Lua = require('Module:Lua') | ||
|
||
local Widget = Lua.import('Module:Widget') | ||
local HtmlWidgets = Lua.import('Module:Widget/Html/All') | ||
local Div = HtmlWidgets.Div | ||
|
||
---@class MatchSummaryRow: Widget | ||
---@operator call(table): MatchSummaryRow | ||
local MatchSummaryRow = Class.new(Widget) | ||
MatchSummaryRow.defaultProps = { | ||
classes = {}, | ||
} | ||
|
||
---@return Widget | ||
function MatchSummaryRow:render() | ||
return Div{ | ||
classes = {'brkts-popup-body-element', unpack(self.props.classes)}, | ||
css = self.props.css, | ||
children = self.props.children, | ||
} | ||
end | ||
|
||
return MatchSummaryRow |