Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 6ac7047

Browse files
author
Noah Lee
committed
Fix to display the footer dynamically (#372)
1 parent 44c8611 commit 6ac7047

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: ui/src/views/Main.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { shallowEqual } from "react-redux"
33
import { Layout, Menu, Row, Col, Result, Button, Drawer, Avatar, Dropdown, Badge} from "antd"
44
import { SettingFilled } from "@ant-design/icons"
55
import { Helmet } from "react-helmet"
6+
import moment from "moment"
67

78
import { useAppSelector, useAppDispatch } from "../redux/hooks"
89
import { init, searchDeployments, searchReviews, fetchLicense, notifyDeploymentEvent, notifyReviewmentEvent, mainSlice as slice } from "../redux/main"
@@ -157,7 +158,7 @@ export default function Main(props: any) {
157158
</Col>
158159
</Row>
159160
</Header>
160-
<Content style={{ padding: '50px 50px' }}>
161+
<Content style={{ padding: "50px 50px" }}>
161162
<Row>
162163
<Col
163164
span={22}
@@ -170,9 +171,9 @@ export default function Main(props: any) {
170171
</Col>
171172
</Row>
172173
</Content>
173-
<Footer style={{ textAlign: 'center' }}>
174+
<Footer style={{ textAlign: "center" }}>
174175
<LicenseFooter license={license} />
175-
Gitploy ©2021 Created by Gitploy.IO
176+
Gitploy ©{moment().format("YYYY")} Created by Gitploy.IO
176177
</Footer>
177178
</Layout>
178179
)

0 commit comments

Comments
 (0)