@@ -6,7 +6,8 @@ import React, { Fragment } from "react";
66import ReactMarkdown from "react-markdown" ;
77
88import Container from "common/components/UI/Container" ;
9-
9+ import Heading from "common/components/Heading" ;
10+ import Text from "common/components/Text" ;
1011import { terms } from "common/data/seo" ;
1112import { whitelisted } from "common/utils/format" ;
1213
@@ -18,26 +19,26 @@ import {
1819} from "../../common/data/terms_and_conditions" ;
1920import ImageWrapper , { ContentWrapper } from "./style" ;
2021
21- export const withPageRouter = ( Component ) => {
22- return withRouter ( ( { router, ...props } ) => {
23- let showLayout = true ;
24- let blog = props . allBlogs [ 5 ] ;
25- let logo = imageExperian ;
26- const searchParams = new URLSearchParams ( router . asPath . split ( / \? / ) [ 1 ] ) ;
27- for ( const [ key , value ] of searchParams ) {
28- if ( key == "showLayout" && value == "false" ) showLayout = false ;
29- if ( key == "agreementType" && value == "equifax" ) {
30- blog = props . allBlogs [ 6 ] ;
31- logo = imageEquifax ;
32- }
33- }
34- return (
35- < Component { ...props } showLayout = { showLayout } blog = { blog } logo = { logo } />
36- ) ;
37- } ) ;
38- } ;
22+ // export const withPageRouter = (Component) => {
23+ // return withRouter(({ router, ...props }) => {
24+ // let showLayout = true;
25+ // let blog = props.allBlogs[5];
26+ // let logo = imageExperian;
27+ // const searchParams = new URLSearchParams(router.asPath.split(/\?/)[1]);
28+ // for (const [key, value] of searchParams) {
29+ // if (key == "showLayout" && value == "false") showLayout = false;
30+ // if (key == "agreementType" && value == "equifax") {
31+ // blog = props.allBlogs[6];
32+ // logo = imageEquifax;
33+ // }
34+ // }
35+ // return (
36+ // <Component {...props} showLayout={showLayout} blog={blog} logo={logo} />
37+ // );
38+ // });
39+ // };
3940
40- const Privacy = ( props ) => {
41+ const Interest = ( props ) => {
4142 const { allBlogs, logo } = props ;
4243
4344 return (
@@ -82,6 +83,32 @@ const Privacy = (props) => {
8283 </div>
8384 </div> */ }
8485 </ ImageWrapper >
86+ { /* <Heading content={<>Interest Rate Policy</>} />
87+ <Heading content={<>1. Introduction</>} />
88+ <Text
89+ content={
90+ <>
91+ The Reserve Bank of India vide its Master Direction DNBR. PD.
92+ 07/03.10.119/2016-17 dated September 1, 2016 and subsequent
93+ amendments) has directed that the Board of each NBFC shall lay
94+ down appropriate principles to determine the interest rates,
95+ processing and other charges. In compliance with the said RBI
96+ directions, Redux Credit Finance Private Limited (‘Redux’ or
97+ ‘Company’) has formulated the interest rate policy taking into
98+ account relevant factors such as cost of funds, margin and
99+ risk premium, etc.
100+ </>
101+ }
102+ />
103+ <Heading
104+ content={<>2. Interest rate methodology and principles</>}
105+ />
106+ <Text content={<></>} />
107+ <Heading content={<>3. Key responsibilities of the Company</>} />
108+ <Text content={<></>} />
109+ <Heading content={<>4. Review of the policy</>} />
110+ <Text content={<></>} /> */ }
111+
85112 < ReactMarkdown source = { allBlogs [ 0 ] . document . content } />
86113 </ Container >
87114 </ ContentWrapper >
@@ -115,4 +142,4 @@ export async function getServerSideProps() {
115142 } ;
116143}
117144
118- export default withPageRouter ( Privacy ) ;
145+ export default Interest ;
0 commit comments