Skip to content

Commit

Permalink
fix: spinner size
Browse files Browse the repository at this point in the history
  • Loading branch information
JuroUhlar committed Jul 11, 2024
1 parent c2eab89 commit 9071869
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/app/playground/Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -519,14 +519,18 @@ function Playground() {
<Container size='large' className={classnames(styles.isSection, styles.jsonSection)}>
<div className={styles.jsonContainer}>
<div>
<h4 className={styles.jsonTitle}>JavaScript Agent Response {isLoadingAgentResponse && <Spinner />}</h4>
<h4 className={styles.jsonTitle}>
JavaScript Agent Response {isLoadingAgentResponse && <Spinner size={16} />}
</h4>
<CollapsibleJsonViewer
dataTestId={TEST_IDS.playground.agentResponseJSON}
json={displayedAgentResponse ?? {}}
/>
</div>
<div>
<h4 className={styles.jsonTitle}>Server API Response {isLoadingServerResponse && <Spinner />}</h4>
<h4 className={styles.jsonTitle}>
Server API Response {isLoadingServerResponse && <Spinner size={16} />}
</h4>
<CollapsibleJsonViewer
dataTestId={TEST_IDS.playground.serverResponseJSON}
json={usedIdentificationEvent ?? {}}
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/common/Spinner/Spinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { SpinnerSvg } from '../../../img/SpinnerSvg';
import classNames from 'classnames';

export const Spinner: FunctionComponent<{
size?: number;
size: number;
className?: string;
}> = ({ size, className }) => (
<SpinnerSvg className={classNames(styles.spinner, className)} width={size} height={size} />
Expand Down

0 comments on commit 9071869

Please sign in to comment.