Skip to content

Commit

Permalink
docs(react): change jsx transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux committed Aug 29, 2024
1 parent 6965814 commit 6e5a711
Show file tree
Hide file tree
Showing 172 changed files with 171 additions and 173 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import {
IxMenuAbout,
IxMenuAboutItem,
} from '@siemens/ix-react';
import React, { useLayoutEffect, useRef } from 'react';

import { useLayoutEffect, useRef } from 'react';

export default () => {
const ref = useRef<HTMLIxMenuElement>(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

import { IxActionCard } from '@siemens/ix-react';
import React from 'react';

export default () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/react-test-app/src/preview-examples/aggrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import { GridOptions } from 'ag-grid-community';
import { AgGridReact } from 'ag-grid-react';
import React from 'react';


const gridOptions = {
columnDefs: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
IxMenu,
IxMenuItem,
} from '@siemens/ix-react';
import React from 'react';


const appSwitchConfig: AppSwitchConfiguration = {
i18nAppSwitch: 'Switch to Application',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
IxMenuItem,
} from '@siemens/ix-react';

import React, { useState } from 'react';
import { useState } from 'react';

export default () => {
const [breakpoints, setBreakpoints] = useState<Breakpoint[]>(['md']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
IxIconButton,
} from '@siemens/ix-react';

import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
IxMenu,
IxMenuItem,
} from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { IxAvatar } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { IxAvatar } from '@siemens/ix-react';
import React from 'react';


export default () => {
return <IxAvatar initials="JD"></IxAvatar>;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-test-app/src/preview-examples/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { IxAvatar } from '@siemens/ix-react';
import React from 'react';


export default () => {
return <IxAvatar></IxAvatar>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { IxBasicNavigation, IxMenu, IxMenuItem } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/basic-navigation.css';

import { IxBasicNavigation, IxMenu, IxMenuItem } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
IxDropdownItem,
IxIconButton,
} from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/blind.css';

import { IxBlind } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/react-test-app/src/preview-examples/blind.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/blind.css';

import { IxBlind } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { IxBreadcrumb, IxBreadcrumbItem } from '@siemens/ix-react';
import React, { useEffect, useState } from 'react';
import { useEffect, useState } from 'react';

export default () => {
const [nextItems, setNextItems] = useState<string[]>([]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { IxBreadcrumb, IxBreadcrumbItem } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { IxBreadcrumb, IxBreadcrumbItem } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { IxButton } from '@siemens/ix-react';
import React from 'react';


export default () => (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/button-loading.css';

import { IxButton, IxIconButton } from '@siemens/ix-react';
import React, { useState } from 'react';
import { useState } from 'react';

export default () => {
const [toggle, setToggle] = useState(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/icon-button.css';

import { IxIconButton } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/react-test-app/src/preview-examples/buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/buttons.css';

import { IxButton } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/react-test-app/src/preview-examples/card-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { IxCardList, IxPushCard } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/react-test-app/src/preview-examples/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/card.css';

import { IxCard, IxCardContent, IxIcon, IxTypography } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { IxCategoryFilter } from '@siemens/ix-react';
import React, { useState } from 'react';
import { useState } from 'react';

export default () => {
const [suggestions] = useState(['Item 1', 'Item 2']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import { FilterState, LogicalFilterOperator } from '@siemens/ix';
import { IxCategoryFilter } from '@siemens/ix-react';
import React, { useState } from 'react';
import { useState } from 'react';

export default () => {
const [filter] = useState<FilterState>({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* LICENSE file in the root directory of this source tree.
*/

import React, { useLayoutEffect, useRef } from 'react';
import { useLayoutEffect, useRef } from 'react';

export default () => {
const ref = useRef<HTMLInputElement>(null);
Expand Down
2 changes: 1 addition & 1 deletion packages/react-test-app/src/preview-examples/checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';


export default () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/react-test-app/src/preview-examples/chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import './styles/chip.css';

import { IxChip } from '@siemens/ix-react';
import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import { IxContentHeader, IxIconButton } from '@siemens/ix-react';

import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import { IxButton, IxContentHeader } from '@siemens/ix-react';

import React from 'react';


export default () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/react-test-app/src/preview-examples/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import { IxContent, IxContentHeader } from '@siemens/ix-react';

import React from 'react';


export default () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import { DateDropdownOption } from '@siemens/ix';
import { IxDateDropdown } from '@siemens/ix-react';
import React from 'react';


const today = new Date().toLocaleDateString('en-US', {
year: 'numeric',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* LICENSE file in the root directory of this source tree.
*/
import { IxDateDropdown } from '@siemens/ix-react';
import React from 'react';


export default () => {
return <IxDateDropdown />;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

import { IxDatePicker, IxSelect, IxSelectItem } from '@siemens/ix-react';
import React, { useState } from 'react';
import { useState } from 'react';

export default () => {
const [locale, setLocale] = useState<'de' | 'en' | (string & {})>('de');
Expand Down
Loading

0 comments on commit 6e5a711

Please sign in to comment.