Skip to content

Commit 77ca838

Browse files
authored
Merge pull request #2 from Bandwidth-Samples/SWI-3543
SWI-3543 Update App for V2 Design
2 parents d57cf2b + 1a8d667 commit 77ca838

23 files changed

+580
-11272
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
24+
yarn.lock

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"@emotion/styled": "^11.8.1",
2222
"@mui/icons-material": "^5.14.0",
2323
"@mui/material": "^5.14.0",
24+
"@mui/styles": "^5.14.0",
2425
"@okta/okta-auth-js": "^7.4.0",
2526
"@okta/okta-react": "^6.7.0",
2627
"@testing-library/jest-dom": "^5.14.1",

src/App.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import './css/App.css';
22
import DialPad from './components/DialPad';
3+
import Navbar from './components/Navbar';
4+
35

46
export default function App() {
57
return (
68
<div className='App'>
9+
<Navbar/>
10+
<h1>In-App Calling</h1>
711
<DialPad/>
812
</div>
913
);
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react';
2+
import '../css/CallControlButton.css';
3+
4+
export default function CallControlButton({type, onClick, disabled, Icon, iconColor='var(--white)', fontSize='large'}) {
5+
const color = disabled ? 'var(--grey65)' : iconColor;
6+
return (
7+
<button className={`${type}-button`} onClick={onClick} disabled={disabled}>
8+
<Icon sx={{ color: color }} fontSize={fontSize}/>
9+
</button>
10+
);
11+
}

0 commit comments

Comments
 (0)