MCPcopy
hub / github.com/mui/material-ui / fn

Function fn

packages/mui-system/src/style/style.ts:163–181  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

161
162 // eslint-disable-next-line react/function-component-definition
163 const fn: StyleResult<PropKey, Theme> = (props) => {
164 if (props[prop] == null) {
165 return null;
166 }
167
168 const propValue = props[prop];
169 const theme = props.theme;
170 const themeMapping = getPath(theme, themeKey) || {};
171 const styleFromPropValue = (valueFinal: any) => {
172 const value = getStyleValue2(themeMapping, transform, valueFinal, prop);
173 return cssProperty === false
174 ? value
175 : {
176 [cssProperty]: value,
177 };
178 };
179
180 return handleBreakpoints(props, propValue, styleFromPropValue);
181 };
182
183 fn.propTypes =
184 process.env.NODE_ENV !== 'production'

Callers 15

startMethod · 0.50
memoizeFunction · 0.50
silentFunction · 0.50
theme.actual.jsFile · 0.50
theme.expected.jsFile · 0.50
theme.actual.jsFile · 0.50
theme.expected.jsFile · 0.50
theme.actual.jsFile · 0.50
theme.expected.jsFile · 0.50
theme.actual.jsFile · 0.50
theme.expected.jsFile · 0.50

Calls 2

handleBreakpointsFunction · 0.90
getPathFunction · 0.70

Tested by

no test coverage detected