Device manager - data fetching (PSG-637) (#9151)

* add session manager tab to user settings

* fussy import ordering

* i18n

* extract device fetching logic into hook

* use new extended device type in device tile, add verified metadata

* add current session section, test

* tidy

* update types for DeviceWithVerification
This commit is contained in:
Kerry
2022-08-10 18:14:59 +02:00
committed by GitHub
parent 4e30d3c0fc
commit b7872f2ff7
12 changed files with 434 additions and 13 deletions
@@ -24,6 +24,7 @@ describe('<DeviceTile />', () => {
const defaultProps = {
device: {
device_id: '123',
isVerified: false,
},
};
const getComponent = (props = {}) => (
@@ -43,6 +44,11 @@ describe('<DeviceTile />', () => {
expect(container).toMatchSnapshot();
});
it('renders a verified device with no metadata', () => {
const { container } = render(getComponent());
expect(container).toMatchSnapshot();
});
it('renders display name with a tooltip', () => {
const device: IMyDevice = {
device_id: '123',