MCPcopy Create free account
hub / github.com/DTStack/dt-react-component / getWidthFromSize

Function getWidthFromSize

src/modal/modal.tsx:27–32  ·  view source on GitHub ↗
(size: ModalProps['size'])

Source from the content-addressed store, hash-verified

25}
26
27const getWidthFromSize = (size: ModalProps['size']) => {
28 if (size === 'small') return 400;
29 if (size === 'middle') return 640;
30 if (size === 'large') return 900;
31 return 520;
32};
33
34export default function InternalModal({
35 bodyStyle,

Callers 1

InternalModalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected