Skip to content

Commit 87cb08e

Browse files
committed
Update prop-types definition of theme
1 parent 4dfa9fc commit 87cb08e

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/DaumPostcode.jsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,17 @@ DaumPostcode.propTypes = {
137137
showMoreHName: PropTypes.bool,
138138
style: PropTypes.object,
139139
submitMode: PropTypes.bool,
140-
theme: PropTypes.object,
140+
theme: PropTypes.exact({
141+
bgColor: PropTypes.string,
142+
searchBgColor: PropTypes.string,
143+
contentBgColor: PropTypes.string,
144+
pageBgColor: PropTypes.string,
145+
textColor: PropTypes.string,
146+
queryTextColor: PropTypes.string,
147+
postcodeTextColor: PropTypes.string,
148+
emphTextColor: PropTypes.string,
149+
outlineColor: PropTypes.string,
150+
}),
141151
useSuggest: PropTypes.bool,
142152
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
143153
focusInput: PropTypes.bool,

0 commit comments

Comments
 (0)