_2_AcceptTerms.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import React from 'react';
  2. import i18n from "i18n-js";
  3. import C from 'rn-class'
  4. C.addColor("#03cf5d", "color-naver");
  5. C.addColor("#6280ba", "color-agreeBtn");
  6. C.addColor("#c87320" , "color-not_agreeBtn");
  7. export default (props)=>{
  8. // 다국어 처리 영역
  9. let {termsTitle, agree , not_agree} = i18n.t("AcceptTerms");
  10. return (
  11. <C.View cls="flx1 bgc-color-white">
  12. <C.Comp.Header />
  13. {/* body */}
  14. <C.View cls="w100% ai-c flx1">
  15. <C.View cls="flx0.8 ai-c w100% jc-sa">
  16. {
  17. termsTitle.map((title , idx)=>{
  18. return (
  19. <C.View key={`terms_${idx}`} cls="w80% bw0.2 jc-sa br5 pa2 sdof_0_5 sdo2 bc-color-gray-light-v3 el2">
  20. <C.Text cls="f2 fw-b" >{title}</C.Text>
  21. <C.EL.Divider cls="ma1"/>
  22. <C.EL.Button title={title} ccls="w100%"
  23. tcls="flx0.9"
  24. iconRight icon={
  25. <C.EL.Icon
  26. ccls="ml3"
  27. name="popup"
  28. type="entypo"
  29. color="white"
  30. />
  31. }/>
  32. <C.EL.CheckBox title='동의합니다' ccls="bgc-color-transparent bw0"/>
  33. </C.View>
  34. )
  35. })
  36. }
  37. </C.View>
  38. <C.View cls="flx0.2 ai-c w100% flx-row jc-c">
  39. <C.EL.Button title={agree} ccls="w40% mr3" btncls="bgc-color-agreeBtn"/>
  40. <C.EL.Button title={not_agree} ccls="w40%" btncls="bgc-color-not_agreeBtn"/>
  41. </C.View>
  42. </C.View>
  43. </C.View>
  44. )
  45. }