mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-11 21:09:09 +08:00
fix: updated the footer year (#290)
Co-authored-by: Palash <88981777+palash-signoz@users.noreply.github.com>
This commit is contained in:
parent
118ee9dd90
commit
368e11e17a
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user