Skip to content

Commit

Permalink
cleanup spanplaygroundpage
Browse files Browse the repository at this point in the history
  • Loading branch information
Parker-Stafford committed Oct 11, 2024
1 parent 31602b4 commit 02e1d82
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions app/src/pages/playground/SpanPlaygroundPage.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import React, { useMemo, useState } from "react";
import { useLoaderData, useNavigate } from "react-router";
import { has } from "lodash";

import { Alert, Button, Flex, Icon, Icons } from "@arizeai/components";

import { spanPlaygroundPageLoaderQuery$data } from "./__generated__/spanPlaygroundPageLoaderQuery.graphql";
import { Playground } from "./Playground";
import {
INPUT_MESSAGES_PARSING_ERROR,
OUTPUT_MESSAGES_PARSING_ERROR,
transformSpanAttributesToPlaygroundInstance,
} from "./playgroundUtils";
import { transformSpanAttributesToPlaygroundInstance } from "./playgroundUtils";

export function SpanPlaygroundPage() {
const data = useLoaderData() as spanPlaygroundPageLoaderQuery$data;
Expand All @@ -32,13 +27,7 @@ export function SpanPlaygroundPage() {

return (
<Flex direction="column" height="100%">
<SpanPlaygroundBanners
span={span}
parsingErrors={[
INPUT_MESSAGES_PARSING_ERROR,
OUTPUT_MESSAGES_PARSING_ERROR,
]}
/>
<SpanPlaygroundBanners span={span} parsingErrors={parsingErrors} />
<Playground instances={[playgroundInstance]} />
</Flex>
);
Expand Down

0 comments on commit 02e1d82

Please sign in to comment.