Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrantz committed Feb 7, 2024
1 parent 9394672 commit ee668b5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
18 changes: 9 additions & 9 deletions packages/paste-icons/src/LogoPasteIcon.tsx
@@ -1,23 +1,23 @@
import { useUID } from "@twilio-paste/uid-library";
/**
* This file was automatically generated with @twilio-labs/svg-to-react
*/
import * as React from 'react';
import {useUID} from '@twilio-paste/uid-library';
import * as React from "react";

import {IconWrapper} from './helpers/IconWrapper';
import type {IconWrapperProps} from './helpers/IconWrapper';
import { IconWrapper } from "./helpers/IconWrapper";
import type { IconWrapperProps } from "./helpers/IconWrapper";

export interface LogoPasteIconProps extends IconWrapperProps {
title?: string;
decorative: boolean;
}

const LogoPasteIcon = React.forwardRef<HTMLElement, LogoPasteIconProps>(
({as, display, element = 'ICON', size, color, title, decorative}, ref) => {
({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
const titleId = `LogoPasteIcon-${useUID()}`;

if (!decorative && title == null) {
throw new Error('[LogoPasteIcon]: Missing a title for non-decorative icon.');
throw new Error("[LogoPasteIcon]: Missing a title for non-decorative icon.");
}

return (
Expand All @@ -42,8 +42,8 @@ const LogoPasteIcon = React.forwardRef<HTMLElement, LogoPasteIconProps>(
</svg>
</IconWrapper>
);
}
},
);

LogoPasteIcon.displayName = 'LogoPasteIcon';
export {LogoPasteIcon};
LogoPasteIcon.displayName = "LogoPasteIcon";
export { LogoPasteIcon };
Expand Up @@ -6,7 +6,6 @@ import { Heading } from "@twilio-paste/heading";
import { ArrowForwardIcon } from "@twilio-paste/icons/esm/ArrowForwardIcon";
import { ListItem, UnorderedList } from "@twilio-paste/list";
import {
Modal,
ModalBody,
ModalContext,
ModalDialogContent,
Expand All @@ -28,7 +27,7 @@ const Accessibility: React.FC = (): React.ReactElement => {
const selectedTabId = useUID();
const [modalIsOpen, setModalIsOpen] = React.useState(true);
const onDismiss = (): void => setModalIsOpen(false);
const onOpenModal = (): void => setModalIsOpen(true);
const onOpenModal = (): void => setModalIsOpen(!modalIsOpen);
const modalHeadingID = useUID();

return (
Expand Down Expand Up @@ -97,7 +96,7 @@ const Accessibility: React.FC = (): React.ReactElement => {
<Button variant="secondary" onClick={onDismiss}>
Cancel
</Button>
<Button variant="primary" onClick={onDismiss}>
<Button variant="primary" onClick={onOpenModal}>
Next
<ArrowForwardIcon decorative />
</Button>
Expand Down

0 comments on commit ee668b5

Please sign in to comment.