BannerAd.jsx
1 year ago
CodeAd.jsx
1 year ago
Congrats.jsx
1 year ago
GoogleAdsense.jsx
1 year ago
Step1.jsx
1 year ago
CodeAd.jsx
40 lines
| 1 | /** |
| 2 | * External Dependencies |
| 3 | */ |
| 4 | import { wizard } from '@advancedAds/i18n'; |
| 5 | |
| 6 | /** |
| 7 | * Internal Dependencies |
| 8 | */ |
| 9 | import StepFooter from '../StepFooter'; |
| 10 | |
| 11 | export default function CodeAd({ options, setOptions }) { |
| 12 | return ( |
| 13 | <> |
| 14 | <h1 className={`!mt-0 ${options.adCode ? 'text-gray-300' : ''}`}> |
| 15 | {wizard.stepTitles.adCode} |
| 16 | </h1> |
| 17 | <div className="space-y-4"> |
| 18 | <div> |
| 19 | <textarea |
| 20 | name="ad_code_code" |
| 21 | id="ad_code_code" |
| 22 | className="w-full p-4 text-base" |
| 23 | rows={6} |
| 24 | placeholder={wizard.codeAd.inputPlaceholder} |
| 25 | onChange={(event) => |
| 26 | setOptions('adCode', event.target.value) |
| 27 | } |
| 28 | /> |
| 29 | </div> |
| 30 | </div> |
| 31 | <StepFooter |
| 32 | isEnabled={options.adCode} |
| 33 | enableText={wizard.codeAd.footerEnableText} |
| 34 | disableText={wizard.codeAd.footerDisableText} |
| 35 | onNext={() => {}} |
| 36 | /> |
| 37 | </> |
| 38 | ); |
| 39 | } |
| 40 |