Skip to content

Commit

Permalink
Fix type errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanCQ committed Oct 3, 2024
1 parent c35745f commit 60c1a3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 66 deletions.
6 changes: 3 additions & 3 deletions src/custom/docs/components/footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ export const Footer = () => {
</div>
</div>
<div className="grid grid-cols-1 gap-16 md:grid-cols-3 md:gap-24">
{footerConfig.map((col) => {
{footerConfig.columns.map((col) => {
return (
<div key={col.title} className="flex flex-col md:items-end">
<div key={col.name} className="flex flex-col md:items-end">
<span className="text-foreground text-left text-[0.675rem] font-semibold uppercase tracking-wide md:text-right">
{col.title}
{col.name}
</span>
<ul className="mt-3 flex flex-col gap-2 md:text-right">
{col.items.map((item) => {
Expand Down
64 changes: 1 addition & 63 deletions stories/custom/docs-footer.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,71 +1,9 @@
import { Meta, StoryObj } from "@storybook/react";
import {DocsFooter } from "src";
import { QuantinuumLogo } from "src/custom/docs/QuantinuumLogo";

const footerConfig = {
logo: <QuantinuumLogo />,
columns: [
{
title: 'Solutions',
items: [
{
href: 'https://docs.quantinuum.com/nexus/index.html',
name: 'Quantinuum Nexus',
},
{
href: 'https://docs.quantinuum.com/inquanto/index.html',
name: 'Inquanto',
},
{
href: 'https://tket.quantinuum.com/',
name: 'TKET',
},
{
href: 'https://docs.quantinuum.com/lambeq',
name: 'Lambeq',
},
],
},
{
title: 'Hardware',
items: [
{
href: 'https://docs.quantinuum.com/h-series/index.html',
name: 'System Model H1',
},
{
href: 'https://docs.quantinuum.com/h-series/index.html',
name: 'System Model H2',
},
{
href: 'https://www.quantinuum.com/hardware#access',
name: 'Get Access',
},
],
},
{
title: 'What We Do?',
items: [
{
href: 'https://www.quantinuum.com/about',
name: 'About Quantinuum',
},
{
href: '"https://www.quantinuum.com/publications',
name: 'Research',
},
{
href: 'https://www.quantinuum.com/events',
name: 'Events',
},
],
},
],
subtitle: '',
}

export function DocsNavDemo() {
return <DocsFooter {...footerConfig} />;
return <DocsFooter />;
}

const meta: Meta<typeof DocsNavDemo> = {
Expand Down

0 comments on commit 60c1a3a

Please sign in to comment.