Simplify/clarify Analytics API types and naming.

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2021-09-16 14:16:16 +02:00
parent 83c163a234
commit 1ff7386291
25 changed files with 305 additions and 344 deletions
@@ -15,10 +15,10 @@
*/
import React from 'react';
import { withAnalyticsDomain } from '@backstage/core-plugin-api';
import { withAnalyticsContext } from '@backstage/core-plugin-api';
import { Link } from '@backstage/core-components';
const DomainlessPlayground = () => {
const ContextlessPlayground = () => {
return (
<>
<Link to="#clicked">Click Here</Link>
@@ -26,4 +26,4 @@ const DomainlessPlayground = () => {
);
};
export const Playground = withAnalyticsDomain(DomainlessPlayground, {});
export const Playground = withAnalyticsContext(ContextlessPlayground, {});