Skip to content

Commit

Permalink
feat: add title to editor props
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHericles committed Jan 7, 2024
1 parent 7b53881 commit 71cd9c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions islands/NRF/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export interface EditorFeature {
}

export interface Props {
title: string;
features: EditorFeature[];
}

Expand All @@ -39,7 +40,7 @@ const AnimationComponents = {
"content-modeling": ContentModeling,
};

export default function Editor({ features }: Props) {
export default function Editor({ title, features }: Props) {
const currentFeature = useSignal<number | null>(null);

useEffect(() => {
Expand Down Expand Up @@ -175,7 +176,7 @@ export default function Editor({ features }: Props) {
<div class="hidden sticky h-screen top-0 lg:flex items-center justify-center">
<ul class="flex flex-col gap-2 text-[#52525B] whitespace-nowrap">
<li class="text-[#02F67C] text-[24px] font-medium mb-2">
How it Works
{title}
</li>
{features.map(({ key: section, id }, idx) => (
<a class="flex items-center gap-2" href={`#${id}`}>
Expand Down

0 comments on commit 71cd9c3

Please sign in to comment.