feat: feed feature, typescript, remove google, fix errs & warns
publish / Build-and-publish (push) Successful in 13m32s

This commit is contained in:
Unknown committed 2026-07-17 22:22:29 +01:00
1 parent 2c42ecae5f
commit 8a10d127c1
55 files changed
+1887 -587

No files matched your search

+19 -38
View File
@@ -1,49 +1,34 @@
import React from 'react'
import { Link, PageProps } from 'gatsby'
import { Link } from 'gatsby'
import dcLogo from '../../images/dclogo.png'
import { Container } from '../shared'
import { logoStyles, CustomNavBar, ulStyles, Li, StyledLink } from './style'
import { pathPrefix } from '../../../gatsby-config.js'
import { pathPrefix } from '../../../gatsby-config'
const naviLinks = [
{
name: 'Home',
url: '/',
active: 'no'
},
{
name: 'About',
url: '/about/',
active: 'no'
},
{
name: 'Blog',
url: '/blog/',
active: 'no'
},
{
name: 'FAQ',
url: '/faq/',
active: 'no'
},
import type { NavibarProps } from '../../types'
interface NaviLink {
name: string
url: string
active: 'yes' | 'no'
}
const naviLinks: NaviLink[] = [
{ name: 'Home', url: '/', active: 'no' },
{ name: 'About', url: '/about/', active: 'no' },
{ name: 'Blog', url: '/blog/', active: 'no' },
{ name: 'Feed', url: '/feed/', active: 'no' },
{ name: 'FAQ', url: '/faq/', active: 'no' },
{
name: 'Documentation',
url: 'https://docs.datacontroller.io/',
active: 'no'
},
{
name: 'Pricing',
url: '/pricing/',
active: 'no'
},
{
name: 'Book Demo',
url: '/contact/',
active: 'no'
},
{ name: 'Pricing', url: '/pricing/', active: 'no' },
{ name: 'Book Demo', url: '/contact/', active: 'no' },
{
name: 'Source Code',
url: 'https://git.datacontroller.io/dc/dc',
@@ -51,11 +36,7 @@ const naviLinks = [
}
]
type DataProps = {
location: Location
}
const Navibar: React.FC<PageProps<DataProps>> = ({ location }) => {
const Navibar: React.FC<NavibarProps> = ({ location }) => {
naviLinks.forEach((link) => (link.active = 'no'))
const currentLink = naviLinks.find(
(link) => pathPrefix + link.url === location?.pathname