From a04e811cb5ea6ce8a16da820e87e4c3b24d4175e Mon Sep 17 00:00:00 2001 From: Erik Goens Date: Fri, 6 Jan 2023 10:35:34 -0600 Subject: [PATCH] Fix for placecage image service which no longer active (#869) * fix for placecage image service which no longer active * updates avatar tests --- .../Avatar/__snapshots__/test.tsx.snap | 24 ++++----- .../components/Avatar/test.tsx | 8 +-- .../pages/components/avatar/react/index.mdx | 54 +++++++++---------- .../pages/components/avatar/scss/index.mdx | 14 ++--- .../pages/components/avatar/usage/index.mdx | 14 ++--- 5 files changed, 57 insertions(+), 57 deletions(-) diff --git a/packages/thumbprint-react/components/Avatar/__snapshots__/test.tsx.snap b/packages/thumbprint-react/components/Avatar/__snapshots__/test.tsx.snap index 2bdf2d4a3..a6be0ef4e 100644 --- a/packages/thumbprint-react/components/Avatar/__snapshots__/test.tsx.snap +++ b/packages/thumbprint-react/components/Avatar/__snapshots__/test.tsx.snap @@ -2,7 +2,7 @@ exports[`EntityAvatar renders an image when the user has one 1`] = `
@@ -80,7 +80,7 @@ exports[`EntityAvatar renders the initials when the user has no image 1`] = ` exports[`adds the \`fullName\` as \`alt\` text when image is provided 1`] = `
Avatar for Duck Goose @@ -157,7 +157,7 @@ exports[`adds the \`fullName\` as \`title\` text 1`] = ` exports[`adds the \`fullName\` as \`title\` text 2`] = `
Avatar for Duck Goose @@ -639,7 +639,7 @@ exports[`renders an SVG when \`isChecked\` is true 2`] = ` exports[`renders an image when the user has one 1`] = `
diff --git a/packages/thumbprint-react/components/Avatar/test.tsx b/packages/thumbprint-react/components/Avatar/test.tsx index 2c7bdcf4e..c151e6626 100644 --- a/packages/thumbprint-react/components/Avatar/test.tsx +++ b/packages/thumbprint-react/components/Avatar/test.tsx @@ -3,7 +3,7 @@ import { mount } from 'enzyme'; import { UserAvatar, EntityAvatar } from './index'; test('renders an image when the user has one', (): void => { - const wrapper = mount(); + const wrapper = mount(); expect(wrapper).toMatchSnapshot(); }); @@ -16,7 +16,7 @@ test('renders the initials when the user has no image', (): void => { test('adds the `fullName` as `title` text', (): void => { const wrapper = mount(); const wrapperWithImage = mount( - , + , ); const wrapperWithInitials = mount(); @@ -30,7 +30,7 @@ test('adds the `fullName` as `title` text', (): void => { test('adds the `fullName` as `alt` text when image is provided', (): void => { const wrapper = mount( - , + , ); expect(wrapper.find('Image').prop('alt')).toContain('Duck Goose'); expect(wrapper).toMatchSnapshot(); @@ -91,7 +91,7 @@ test('renders checkmark SVG when `isChecked` and `isOnline` are true', (): void }); test('EntityAvatar renders an image when the user has one', (): void => { - const wrapper = mount(); + const wrapper = mount(); expect(wrapper).toMatchSnapshot(); }); diff --git a/www/src/pages/components/avatar/react/index.mdx b/www/src/pages/components/avatar/react/index.mdx index 014558af3..ac997537b 100644 --- a/www/src/pages/components/avatar/react/index.mdx +++ b/www/src/pages/components/avatar/react/index.mdx @@ -19,10 +19,10 @@ Avatars are available as two components: `UserAvatar` and `EntityAvatar`. ```jsx
- +
- +
``` @@ -37,36 +37,36 @@ Both `UserAvatar` and `EntityAvatar` are available in five sizes ranging from `x <>
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -133,37 +133,37 @@ This badge indicates that a user or entity is online.
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -180,19 +180,19 @@ This badge indicates that a user or entity is online. ```jsx
- +
- +
- +
- +
- +
``` diff --git a/www/src/pages/components/avatar/scss/index.mdx b/www/src/pages/components/avatar/scss/index.mdx index 96c4d8f4e..31e76cc57 100644 --- a/www/src/pages/components/avatar/scss/index.mdx +++ b/www/src/pages/components/avatar/scss/index.mdx @@ -34,7 +34,7 @@ import Alert from 'components/alert'; ```html
- +
``` @@ -42,7 +42,7 @@ import Alert from 'components/alert'; ```html
- +
``` @@ -50,7 +50,7 @@ import Alert from 'components/alert'; ```html
- +
``` @@ -58,7 +58,7 @@ import Alert from 'components/alert'; ```html
- +
``` @@ -66,7 +66,7 @@ import Alert from 'components/alert'; ```html
- +
``` @@ -81,7 +81,7 @@ import Alert from 'components/alert'; ```html
- +
``` @@ -90,7 +90,7 @@ import Alert from 'components/alert'; ```html
- +
99
``` diff --git a/www/src/pages/components/avatar/usage/index.mdx b/www/src/pages/components/avatar/usage/index.mdx index c72918458..421360008 100644 --- a/www/src/pages/components/avatar/usage/index.mdx +++ b/www/src/pages/components/avatar/usage/index.mdx @@ -26,13 +26,13 @@ One of the defining guidelines for avatars and their shape is what the avatar is
- +
Entity Avatar
- +
User Avatar
@@ -55,23 +55,23 @@ One of the defining guidelines for avatars and their shape is what the avatar is
- +
Extra Large
- +
Large
- +
Medium
- +
Small
- +
Extra Small