File tree Expand file tree Collapse file tree 3 files changed +23
-15
lines changed Expand file tree Collapse file tree 3 files changed +23
-15
lines changed Original file line number Diff line number Diff line change 4
4
"@ui5/webcomponents" : " 1.0.0-rc.7" ,
5
5
"@ui5/webcomponents-fiori" : " 1.0.0-rc.7" ,
6
6
"@ui5/webcomponents-icons" : " 1.0.0-rc.7" ,
7
- "@ui5/webcomponents-react" : " ^0.9.0 " ,
7
+ "@ui5/webcomponents-react" : " ^0.9.4 " ,
8
8
"@testing-library/react" : " ^9.3.2" ,
9
9
"@testing-library/jest-dom" : " ^4.2.4" ,
10
10
"@testing-library/user-event" : " ^7.1.2" ,
Original file line number Diff line number Diff line change 1
- import { ThemeProvider } from '@ui5/webcomponents-react/lib/ThemeProvider' ;
1
+ import {
2
+ FlexBox ,
3
+ FlexBoxAlignItems ,
4
+ FlexBoxDirection ,
5
+ FlexBoxJustifyContent ,
6
+ Link ,
7
+ LinkDesign ,
8
+ ShellBar ,
9
+ ThemeProvider
10
+ } from '@ui5/webcomponents-react' ;
2
11
import React from 'react' ;
3
12
import './App.css' ;
4
- import logo from './logo.svg' ;
5
13
6
14
function App ( ) {
7
15
return (
8
16
< ThemeProvider >
9
- < div className = "App" >
10
- < header className = "App-header" >
11
- < img src = { logo } className = "App-logo" alt = "logo" />
12
- < p >
13
- Edit < code > src/App.js </ code > and save to reload.
14
- </ p >
15
- < a className = "App-link" href = "https://reactjs.org" target = "_blank" rel = "noopener noreferrer" >
16
- Learn React
17
- </ a >
18
- </ header >
19
- </ div >
17
+ < ShellBar primaryTitle = "UI5 Web Components for React Template" / >
18
+ < FlexBox
19
+ style = { { width : '100%' , height : '100vh' } }
20
+ direction = { FlexBoxDirection . Column }
21
+ justifyContent = { FlexBoxJustifyContent . Center }
22
+ alignItems = { FlexBoxAlignItems . Center }
23
+ >
24
+ < Link href = "https://sap.github.io/ui5-webcomponents-react/" target = "_blank" design = { LinkDesign . Emphasized } >
25
+ Getting Started with UI5 Web Component for React
26
+ </ Link >
27
+ </ FlexBox >
20
28
</ ThemeProvider >
21
29
) ;
22
30
}
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ import App from './App';
4
4
5
5
test ( 'renders learn react link' , ( ) => {
6
6
const { getByText } = render ( < App /> ) ;
7
- const linkElement = getByText ( / l e a r n r e a c t / i) ;
7
+ const linkElement = getByText ( / G e t t i n g S t a r t e d w i t h U I 5 W e b C o m p o n e n t f o r R e a c t / i) ;
8
8
expect ( linkElement ) . toBeInTheDocument ( ) ;
9
9
} ) ;
You can’t perform that action at this time.
0 commit comments