Skip to content

Commit

Permalink
fix(codeql): remove unused imports (#4746)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebpollman authored Nov 16, 2023
1 parent 2a4c1a1 commit 3bd0093
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion examples/next/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const path = require('path');
const { patchWebpackConfig } = require('next-global-css');

module.exports = {
Expand Down
16 changes: 8 additions & 8 deletions examples/react-native/src/features/InAppMessaging/Demo/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ export interface GetDemoMessageParams {
hasPrimaryButton: boolean;
hasSecondaryButton: boolean;
imageOrientation: ImageOrientation;
primaryButtonAction: MessageAction;
secondaryButtonAction: MessageAction;
layout: MessageLayout;
primaryButtonAction: InAppMessageAction;
secondaryButtonAction: InAppMessageAction;
layout: InAppMessageLayout;
}

export const ACTIONS: MessageAction[] = ['CLOSE', 'DEEP_LINK', 'LINK'];
export const LAYOUTS: MessageLayout[] = [
export const ACTIONS: InAppMessageAction[] = ['CLOSE', 'DEEP_LINK', 'LINK'];
export const LAYOUTS: InAppMessageLayout[] = [
'BOTTOM_BANNER',
'CAROUSEL',
'FULL_SCREEN',
Expand All @@ -39,9 +39,9 @@ const LANDSCAPE_IMAGE =
const URL = 'https://ui.docs.amplify.aws/';

const getButton = (
action: MessageAction,
action: InAppMessageAction,
type: 'primary' | 'secondary'
): MessageButton => ({
): InAppMessageButton => ({
title: `${type} - ${action.toLowerCase()}`,
action,
url: action === 'LINK' || action === 'DEEP_LINK' ? URL : undefined,
Expand All @@ -57,7 +57,7 @@ function getDemoMessage({
layout,
primaryButtonAction,
secondaryButtonAction,
}: GetDemoMessageParams): Message {
}: GetDemoMessageParams): InAppMessage {
return {
layout,
id: layout,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from 'react';

import { Button } from '../../Button';
import { ButtonGroup } from '../ButtonGroup';
import { ButtonGroupProps, PrimitiveProps } from '../../types';
import { ButtonGroupProps } from '../../types';
import { ComponentClassName } from '@aws-amplify/ui';
import {
testFlexProps,
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/primitives/Link/__tests__/Link.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ describe('Link:', () => {

expect(screen.getByText(/you are home/i)).toBeInTheDocument();

const leftClick = { button: 0 };
const events = userEvent.setup();
await act(async () => {
await events.click(screen.getByText(/about/i));
Expand Down

0 comments on commit 3bd0093

Please sign in to comment.