Skip to content

Commit

Permalink
fix: corrected anchor tags href in Playground sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Santhoshmani1 committed Dec 12, 2023
1 parent 865f523 commit 50d6545
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions library/src/containers/Operations/Operation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ export const OperationInfo: React.FunctionComponent<Props> = props => {
<span
className={`font-mono border uppercase p-1 rounded mr-2 ${borderColor}`}
title={type}
id={channelName}
>
{typeLabel}
</span>{' '}
Expand Down
4 changes: 2 additions & 2 deletions library/src/containers/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ const OperationsList: React.FunctionComponent = () => {
interface OperationItemProps {
channelName: string;
summary: string;
kind: 'publish' | 'subscribe';
kind: 'subscribe' | 'publish';
}

const OperationItem: React.FunctionComponent<OperationItemProps> = ({
Expand All @@ -383,7 +383,7 @@ const OperationItem: React.FunctionComponent<OperationItemProps> = ({
<li>
<a
className="flex no-underline text-gray-700 mb-2 hover:text-gray-900"
href={`#operation-${kind}-${channelName}`}
href={'#' + channelName}
onClick={() => setShowSidebar(false)}
>
<span
Expand Down

0 comments on commit 50d6545

Please sign in to comment.