Skip to content

Commit 004b707

Browse files
committed
Implement useBannerLink option
1 parent 27ff231 commit 004b707

3 files changed

Lines changed: 18 additions & 14 deletions

File tree

index.d.ts

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
declare module "react-daum-postcode" {
2-
import * as React from "react";
1+
declare module 'react-daum-postcode' {
2+
import * as React from 'react';
33

44
type AddressData = {
55
zonecode: string;
66
address: string;
77
addressEnglish: string;
8-
addressType: "R" | "J";
9-
userSelectedType: "R" | "J";
10-
userLanguageType: "K" | "E";
8+
addressType: 'R' | 'J';
9+
userSelectedType: 'R' | 'J';
10+
userLanguageType: 'K' | 'E';
1111
roadAddress: string;
1212
roadAddressEnglish: string;
1313
jibunAddress: string;
@@ -18,7 +18,7 @@ declare module "react-daum-postcode" {
1818
autoJibunAddressEnglish: string;
1919
buildingCode: string;
2020
buildingName: string;
21-
apartment: "Y" | "N"
21+
apartment: 'Y' | 'N';
2222
sido: string;
2323
sigungu: string;
2424
sigunguCode: string;
@@ -30,13 +30,13 @@ declare module "react-daum-postcode" {
3030
bname2: string;
3131
hname: string;
3232
query: string;
33-
noSelected: "Y" | "N";
34-
}
33+
noSelected: 'Y' | 'N';
34+
};
3535

3636
type SearchData = {
3737
q: string;
3838
count: number;
39-
}
39+
};
4040

4141
type ThemeProps = {
4242
bgColor?: string;
@@ -48,7 +48,7 @@ declare module "react-daum-postcode" {
4848
postcodeTextColor?: string;
4949
emphTextColor?: string;
5050
outlineColor?: string;
51-
}
51+
};
5252

5353
type DaumPostcodeProps = {
5454
onComplete(data: AddressData): void;
@@ -59,7 +59,7 @@ declare module "react-daum-postcode" {
5959
autoMapping?: boolean;
6060
autoResize?: boolean;
6161
defaultQuery?: string;
62-
errorMessage?: React.ReactElement<any>
62+
errorMessage?: React.ReactElement<any>;
6363
height?: number | string;
6464
hideEngBtn?: boolean;
6565
hideMapBtn?: boolean;
@@ -72,15 +72,16 @@ declare module "react-daum-postcode" {
7272
style?: React.CSSProperties;
7373
theme?: ThemeProps;
7474
useSuggest?: boolean;
75+
useBannerLink?: boolean;
7576
width?: number | string;
7677
submitMode?: boolean;
7778
focusInput?: boolean;
7879
focusContent?: boolean;
79-
}
80+
};
8081

8182
class DaumPostcode extends React.Component<DaumPostcodeProps, any> {}
8283

8384
export { AddressData, SearchData, ThemeProps, DaumPostcodeProps, DaumPostcode };
8485

8586
export default DaumPostcode;
86-
}
87+
}

lib/DaumPostcode.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/DaumPostcode.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class DaumPostcode extends React.Component {
5454
submitMode: comp.props.submitMode,
5555
theme: comp.props.theme,
5656
useSuggest: comp.props.useSuggest,
57+
useBannerLink: comp.props.useBannerLink,
5758
width: '100%',
5859
focusInput: comp.props.focusInput,
5960
focusContent: comp.props.focusContent,
@@ -149,6 +150,7 @@ DaumPostcode.propTypes = {
149150
outlineColor: PropTypes.string,
150151
}),
151152
useSuggest: PropTypes.bool,
153+
useBannerLink: PropTypes.bool,
152154
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
153155
focusInput: PropTypes.bool,
154156
focusContent: PropTypes.bool,
@@ -176,6 +178,7 @@ DaumPostcode.defaultProps = {
176178
submitMode: true,
177179
theme: null,
178180
useSuggest: true,
181+
useBannerLink: true,
179182
width: '100%',
180183
focusInput: true,
181184
focusContent: true,

0 commit comments

Comments
 (0)