diff --git a/examples/src/AgentMetadata.tsx b/examples/src/Components/AgentMetadata.tsx similarity index 77% rename from examples/src/AgentMetadata.tsx rename to examples/src/Components/AgentMetadata.tsx index bfc15bf3..dc5a9043 100644 --- a/examples/src/AgentMetadata.tsx +++ b/examples/src/Components/AgentMetadata.tsx @@ -1,18 +1,17 @@ import React from "react"; -import { AgentData } from "../../type-declarations/simularium/types"; +import { AgentData } from "../../../type-declarations/simularium/types"; interface AgentMetadataProps { agentData: AgentData; } const AgentMetadata = ({ agentData }: AgentMetadataProps): JSX.Element => { - - const getContents = () => { if (agentData.instanceId === -1) { - return
No agent selected
; + return
No agent selected
; } return ( -
+
+
Agent metadata
uniqueID: {agentData.instanceId}
agentType: {agentData.type}
@@ -28,7 +27,4 @@ const AgentMetadata = ({ agentData }: AgentMetadataProps): JSX.Element => { ); }; - return
Agent Metadata: {getContents()}
; -}; - export default AgentMetadata; diff --git a/examples/src/ColorPicker.tsx b/examples/src/Components/ColorPicker.tsx similarity index 98% rename from examples/src/ColorPicker.tsx rename to examples/src/Components/ColorPicker.tsx index 8db0aa33..26e0d35d 100644 --- a/examples/src/ColorPicker.tsx +++ b/examples/src/Components/ColorPicker.tsx @@ -1,5 +1,5 @@ import React, { useState } from "react"; -import { UIDisplayData } from "../../src"; +import { UIDisplayData } from "../../../src"; type ColorPickerProps = { uiDisplayData: UIDisplayData; @@ -90,7 +90,7 @@ const ColorPicker = ({ }; return ( - <> +
Color change agent selections: