-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
css update for events; using pivot instead of custome
- Loading branch information
Showing
11 changed files
with
164 additions
and
127 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...p/devices/module/shared/components/__snapshots__/moduleIdentityDetailHeader.spec.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ModuleIdentityDetailHeader matches snapshot 1`] = ` | ||
<Stack | ||
className="module-pivot" | ||
horizontal={true} | ||
> | ||
<StyledPivotBase | ||
aria-label="digitalTwin.pivot.ariaLabel" | ||
onLinkClick={[Function]} | ||
selectedKey="moduleDetail" | ||
> | ||
<PivotItem | ||
headerText="deviceContent.navBar.moduleDetail" | ||
itemKey="moduleDetail" | ||
key="moduleDetail" | ||
/> | ||
<PivotItem | ||
headerText="deviceContent.navBar.moduleTwin" | ||
itemKey="moduleTwin" | ||
key="moduleTwin" | ||
/> | ||
</StyledPivotBase> | ||
</Stack> | ||
`; |
9 changes: 9 additions & 0 deletions
9
src/app/devices/module/shared/components/moduleIdentityDetailHeader.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/*********************************************************** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License | ||
**********************************************************/ | ||
@import '../../../../css/themes'; | ||
|
||
.module-pivot { | ||
padding-left: 20px; | ||
} |
22 changes: 22 additions & 0 deletions
22
src/app/devices/module/shared/components/moduleIdentityDetailHeader.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/*********************************************************** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License | ||
**********************************************************/ | ||
import 'jest'; | ||
import * as React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
import { ModuleIdentityDetailHeader } from './moduleIdentityDetailHeader'; | ||
|
||
const search = '?id=device1'; | ||
const pathname = `/#/devices/deviceDetail/moduleIdentity/moduleDetail/${search}`; | ||
jest.mock('react-router-dom', () => ({ | ||
useHistory: () => ({ push: jest.fn() }), | ||
useLocation: () => ({ search, pathname }), | ||
useRouteMatch: () => ({ url: pathname }) | ||
})); | ||
|
||
describe('ModuleIdentityDetailHeader', () => { | ||
it('matches snapshot', () => { | ||
expect(shallow(<ModuleIdentityDetailHeader/>)).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/*********************************************************** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License | ||
**********************************************************/ | ||
@import '../../../css/themes'; | ||
|
||
.digitaltwin-pivot { | ||
padding-left: 22px; | ||
} |
Oops, something went wrong.