Skip to content

Commit

Permalink
format files
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Apr 9, 2024
1 parent 5a0864e commit 374f9ae
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
22 changes: 11 additions & 11 deletions opentrons-ai-client/src/components/Button/__tests__/Button.test.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { render, screen } from "@testing-library/react";
import { describe, it, expect } from "vitest";
import { render, screen } from '@testing-library/react'
import { describe, it, expect } from 'vitest'

import { Button } from "../index";
import { Button } from '../index'

describe("Button", () => {
it("renders with the provided label", () => {
const label = "Click me!";
render(<Button label={label} />);
const buttonElement = screen.getByText(label);
expect(buttonElement).toBeInTheDocument();
});
});
describe('Button', () => {
it('renders with the provided label', () => {
const label = 'Click me!'
render(<Button label={label} />)
const buttonElement = screen.getByText(label)
expect(buttonElement).toBeInTheDocument()
})
})
6 changes: 3 additions & 3 deletions opentrons-ai-client/src/components/Button/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export interface ButtonProps {
label: string;
label: string
}

export const Button = ({ label }: ButtonProps) => {
return <button style={{ fontSize: "2rem" }}>{label}</button>;
};
return <button style={{ fontSize: '2rem' }}>{label}</button>
}
14 changes: 7 additions & 7 deletions opentrons-ai-client/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from "react";
import React from 'react'

import ReactDOM from "react-dom/client";
import ReactDOM from 'react-dom/client'

import App from "./App.tsx";
import "./index.css";
import App from './App.tsx'
import './index.css'

ReactDOM.createRoot(document.getElementById("root")!).render(
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>,
);
</React.StrictMode>
)

0 comments on commit 374f9ae

Please sign in to comment.