Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Dec 20, 2024
1 parent 5954300 commit 22521cc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion website/src/components/versionCallout/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import React from 'react';
import Admonition from '@theme/Admonition';

const VersionCallout = ({ version }) => (
const VersionCallout = ({ version }) => {
if (!version) {
// If no version is passed, render nothing or a default fallback message
return null;
}

return (
<div>
<Admonition type="tip" icon="💡" title="Did you know...">
<span>
Expand All @@ -13,5 +19,6 @@ const VersionCallout = ({ version }) => (
</Admonition>
</div>
);
};

export default VersionCallout;

0 comments on commit 22521cc

Please sign in to comment.