fix: updated the footer year (#290)

Co-authored-by: Palash <88981777+palash-signoz@users.noreply.github.com>
This commit is contained in:
Vamsi Krishna 2021-09-06 22:04:43 +05:30 committed by GitHub
parent 118ee9dd90
commit 368e11e17a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ interface BaseLayoutProps {
const BaseLayout: React.FC<BaseLayoutProps> = ({ children }) => { const BaseLayout: React.FC<BaseLayoutProps> = ({ children }) => {
const location = useLocation(); const location = useLocation();
const { dispatch } = useRoute(); const { dispatch } = useRoute();
const currentYear = new Date().getFullYear();
useEffect(() => { useEffect(() => {
dispatch({ type: 'ROUTE_IS_LOADED', payload: location.pathname }); dispatch({ type: 'ROUTE_IS_LOADED', payload: location.pathname });
@ -29,7 +30,7 @@ const BaseLayout: React.FC<BaseLayoutProps> = ({ children }) => {
{children} {children}
</Content> </Content>
<Footer style={{ textAlign: 'center', fontSize: 10 }}> <Footer style={{ textAlign: 'center', fontSize: 10 }}>
SigNoz Inc. ©2020 SigNoz Inc. ©{currentYear}
</Footer> </Footer>
</Layout> </Layout>
</Layout> </Layout>