diff --git a/src/App.module.css b/src/App.module.css index 89ef9f2f..9f2d6f68 100644 --- a/src/App.module.css +++ b/src/App.module.css @@ -1,11 +1,11 @@ -.App { +.app { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; font-size: 13px; height: calc(100vh); } -.AppBody { +.appBody { color: white; padding: 15px; } diff --git a/src/App.tsx b/src/App.tsx index a9ad394d..4d54e81b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -44,9 +44,9 @@ function App(): JSX.Element { } return ( -
+
-
{page}
+
{page}
) diff --git a/src/api/eventManager.ts b/src/api/eventManager.ts index fba62a03..60493997 100644 --- a/src/api/eventManager.ts +++ b/src/api/eventManager.ts @@ -40,7 +40,7 @@ export class EventManager { this.sendEvent({ type: WebviewSendEventType.JumpToCode, data: data } as SendJumpToCodeEvent) } - public Login(data: ISendLoginEventData): void { + public login(data: ISendLoginEventData): void { this.sendEvent({ type: WebviewSendEventType.Login, data: data } as SendLoginEvent) } } diff --git a/src/api/index.ts b/src/api/index.ts index 31a6691b..20bdc98b 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -14,7 +14,7 @@ export type WebviewSendEvent = SendJumpToCodeEvent | SendLoginEvent // Receive events from the IDEs. export enum WebviewReceiveEventType { SetEmitter = 'SET_EMITTER', - ShowPage = 'SHOW_DATA' + ShowPage = 'SHOW_PAGE' } export type WebviewReceiveEvent = ReceiveShowPageEvent | ReceiveSetEmitterEvent diff --git a/src/components/Page/Login/AccessToken.test.tsx b/src/components/Page/Login/AccessToken.test.tsx index 056ce693..2f0d334c 100644 --- a/src/components/Page/Login/AccessToken.test.tsx +++ b/src/components/Page/Login/AccessToken.test.tsx @@ -27,7 +27,7 @@ describe('AccessToken component', () => { test('calls handlePasswordSwitch on button click', () => { const { getByText } = render() - const buttonElement = getByText('Have Password?') + const buttonElement = getByText('Using Password') fireEvent.click(buttonElement) diff --git a/src/components/Page/Login/AccessToken.tsx b/src/components/Page/Login/AccessToken.tsx index 63c9259a..eb03dcc6 100644 --- a/src/components/Page/Login/AccessToken.tsx +++ b/src/components/Page/Login/AccessToken.tsx @@ -15,7 +15,7 @@ export function AccessToken(props: Props): JSX.Element { Access Token
{ test('renders the default footer when type is not SSO', () => { const { getByText } = render(