Skip to content

Commit 9050ccf

Browse files
fixed footer styling & markdown bug
1 parent f07dcf6 commit 9050ccf

File tree

4 files changed

+71
-43
lines changed

4 files changed

+71
-43
lines changed

landing/src/common/data/interest/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ date: "2019-06-10"
55
---
66

77

8-
#### Interest Rate Policy
8+
## Interest Rate Policy
99

1010

1111
#### 1. Introduction

landing/src/containers/Footer/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@ const Footer = ({ row, col, colOne, colTwo }) => {
5151
</>
5252
) : (
5353
<>
54-
<Box className="row" {...row}>
54+
<Box style={{ width: "100%" }} className="row" {...row}>
5555
<Box className="col-one" {...colOne}>
5656
<Logo
5757
className="logo"
5858
href="/"
5959
logoSrc={{ src: logo }}
6060
title="Home"
6161
withAnchor="false"
62+
logoStyle={{ style: { width: "205px", height: "52px" } }}
6263
/>
6364
<Text
6465
className="text"

landing/src/pages/advisory/index.jsx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,26 @@ import {
1818
} from "../../common/data/terms_and_conditions";
1919
import ImageWrapper, { ContentWrapper } from "./style";
2020

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-
};
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+
// };
3939

40-
const Privacy = (props) => {
40+
const Advisory = (props) => {
4141
const { allBlogs, logo } = props;
4242

4343
return (
@@ -115,4 +115,4 @@ export async function getServerSideProps() {
115115
};
116116
}
117117

118-
export default withPageRouter(Privacy);
118+
export default Advisory;

landing/src/pages/interest/index.jsx

Lines changed: 48 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import React, { Fragment } from "react";
66
import ReactMarkdown from "react-markdown";
77

88
import Container from "common/components/UI/Container";
9-
9+
import Heading from "common/components/Heading";
10+
import Text from "common/components/Text";
1011
import { terms } from "common/data/seo";
1112
import { whitelisted } from "common/utils/format";
1213

@@ -18,26 +19,26 @@ import {
1819
} from "../../common/data/terms_and_conditions";
1920
import 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

Comments
 (0)