@eventcatalog/core 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eventcatalog/core
2
2
 
3
+ ## 0.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`1eb4572`](https://github.com/boyney123/eventcatalog/commit/1eb4572918ac06afb64554fef2fc1a3877fbf06d) [#44](https://github.com/boyney123/eventcatalog/pull/44) Thanks [@boyney123](https://github.com/boyney123)! - feat: added more customise options and documentation for them
8
+
3
9
  ## 0.0.3
4
10
 
5
11
  ### Patch Changes
@@ -2,30 +2,23 @@ import React from 'react';
2
2
  import { useConfig } from '@/hooks/EventCatalog';
3
3
 
4
4
  export default function Footer() {
5
- const { organizationName, editUrl } = useConfig();
5
+ const { organizationName, footerLinks: navigation = [] } = useConfig();
6
6
  const year = new Date().getFullYear();
7
7
 
8
- const navigation = {
9
- main: [
10
- { name: 'Events', href: '/events' },
11
- { name: 'Services', href: '/services' },
12
- { name: '3D Node Graph', href: '/overview' },
13
- { name: 'GitHub', href: editUrl },
14
- ],
15
- };
16
-
17
8
  return (
18
9
  <footer className="bg-gray-800">
19
10
  <div className="max-w-7xl mx-auto py-12 px-4 overflow-hidden sm:px-6 lg:px-8">
20
- <nav className="-mx-5 -my-2 flex flex-wrap justify-center" aria-label="Footer">
21
- {navigation.main.map((item) => (
22
- <div key={item.name} className="px-5 py-2">
23
- <a href={item.href} className="text-base text-gray-500 hover:text-gray-900">
24
- {item.name}
25
- </a>
26
- </div>
27
- ))}
28
- </nav>
11
+ {navigation && (
12
+ <nav className="-mx-5 -my-2 flex flex-wrap justify-center" aria-label="Footer">
13
+ {navigation.map((item) => (
14
+ <div key={item.label} className="px-5 py-2">
15
+ <a href={item.href} className="text-base text-gray-500 hover:text-gray-900">
16
+ {item.label}
17
+ </a>
18
+ </div>
19
+ ))}
20
+ </nav>
21
+ )}
29
22
  <p className="mt-8 text-center text-base text-gray-400">
30
23
  Copyright © {year} {organizationName}. Built with{' '}
31
24
  <a className="underline" href="https://eventcatalog.dev" target="_blank" rel="noreferrer">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventcatalog/core",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,7 +37,7 @@
37
37
  "react-syntax-highlighter": "^15.4.5"
38
38
  },
39
39
  "devDependencies": {
40
- "@eventcatalog/types": "0.0.1",
40
+ "@eventcatalog/types": "0.0.2",
41
41
  "@types/react": "^17.0.36",
42
42
  "autoprefixer": "^10.4.0",
43
43
  "commander": "^8.3.0",