Skip to content

Commit

Permalink
Apply Prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelwhitton committed Feb 6, 2025
1 parent 4167cf0 commit 974ccf9
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions src/components/enablement/index.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
import React from "react"
import { Callout } from "@pantheon-systems/pds-toolkit-react"
import React from 'react';
import { Callout } from '@pantheon-systems/pds-toolkit-react';
import './style.css';

const Enablement = ({ title, link, campaign, children }) => {

function _handleClick() {
if (window.analytics){
window.analytics.track("Docs Enablement Clicked", {
campaign: {campaign},
if (window.analytics) {
window.analytics.track('Docs Enablement Clicked', {
campaign: { campaign },
});
}
}
return (
<Callout
children={children}
type="info"
className="docs-alert"
>
<Callout children={children} type="info" className="docs-alert">
<h4>
<a href={link} onClick={_handleClick}>{title}</a>
<a href={link} onClick={_handleClick}>
{title}
</a>
</h4>
{children}
</Callout>
)
}
);
};

export default Enablement
export default Enablement;

0 comments on commit 974ccf9

Please sign in to comment.