Skip to content

Commit 60c1a3a

Browse files
committed
Fix type errors.
1 parent c35745f commit 60c1a3a

File tree

2 files changed

+4
-66
lines changed

2 files changed

+4
-66
lines changed

src/custom/docs/components/footer/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ export const Footer = () => {
8686
</div>
8787
</div>
8888
<div className="grid grid-cols-1 gap-16 md:grid-cols-3 md:gap-24">
89-
{footerConfig.map((col) => {
89+
{footerConfig.columns.map((col) => {
9090
return (
91-
<div key={col.title} className="flex flex-col md:items-end">
91+
<div key={col.name} className="flex flex-col md:items-end">
9292
<span className="text-foreground text-left text-[0.675rem] font-semibold uppercase tracking-wide md:text-right">
93-
{col.title}
93+
{col.name}
9494
</span>
9595
<ul className="mt-3 flex flex-col gap-2 md:text-right">
9696
{col.items.map((item) => {

stories/custom/docs-footer.stories.tsx

+1-63
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,9 @@
11
import { Meta, StoryObj } from "@storybook/react";
22
import {DocsFooter } from "src";
3-
import { QuantinuumLogo } from "src/custom/docs/QuantinuumLogo";
43

5-
const footerConfig = {
6-
logo: <QuantinuumLogo />,
7-
columns: [
8-
{
9-
title: 'Solutions',
10-
items: [
11-
{
12-
href: 'https://docs.quantinuum.com/nexus/index.html',
13-
name: 'Quantinuum Nexus',
14-
},
15-
{
16-
href: 'https://docs.quantinuum.com/inquanto/index.html',
17-
name: 'Inquanto',
18-
},
19-
{
20-
href: 'https://tket.quantinuum.com/',
21-
name: 'TKET',
22-
},
23-
{
24-
href: 'https://docs.quantinuum.com/lambeq',
25-
name: 'Lambeq',
26-
},
27-
],
28-
},
29-
{
30-
title: 'Hardware',
31-
items: [
32-
{
33-
href: 'https://docs.quantinuum.com/h-series/index.html',
34-
name: 'System Model H1',
35-
},
36-
{
37-
href: 'https://docs.quantinuum.com/h-series/index.html',
38-
name: 'System Model H2',
39-
},
40-
{
41-
href: 'https://www.quantinuum.com/hardware#access',
42-
name: 'Get Access',
43-
},
44-
],
45-
},
46-
{
47-
title: 'What We Do?',
48-
items: [
49-
{
50-
href: 'https://www.quantinuum.com/about',
51-
name: 'About Quantinuum',
52-
},
53-
{
54-
href: '"https://www.quantinuum.com/publications',
55-
name: 'Research',
56-
},
57-
{
58-
href: 'https://www.quantinuum.com/events',
59-
name: 'Events',
60-
},
61-
],
62-
},
63-
],
64-
subtitle: '',
65-
}
664

675
export function DocsNavDemo() {
68-
return <DocsFooter {...footerConfig} />;
6+
return <DocsFooter />;
697
}
708

719
const meta: Meta<typeof DocsNavDemo> = {

0 commit comments

Comments
 (0)