Skip to content

Commit

Permalink
docs: fix broken dicebear avatar api url (#4835)
Browse files Browse the repository at this point in the history
  • Loading branch information
fondoger authored Oct 24, 2023
1 parent f31596c commit 28d82ab
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ We delete the original sample code and replace it with a simple point of contact
const getAvatar = (users: Array<{ name: string; email: string }>) =>
users.map(user => ({
...user,
avatar: `https://avatars.dicebear.com/v2/identicon/${user.name}.svg`,
avatar: `https://api.dicebear.com/7.x/pixel-art/svg?seed=${user.name}`,
}));

const mockData = getAvatar([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ import Item from '../components/Item';
const getAvatar = (users: Array<{ name: string, email: string }>) =>
users.map(user => ({
...user,
avatar: `https://avatars.dicebear.com/v2/identicon/${user.name}.svg`,
avatar: `https://api.dicebear.com/7.x/pixel-art/svg?seed=${user.name}`,
}));

const mockData = getAvatar([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import Item from '../../components/Item';
const getAvatar = (users: Array<{ name: string; email: string }>) =>
users.map(user => ({
...user,
avatar: `https://avatars.dicebear.com/v2/identicon/${user.name}.svg`,
avatar: `https://api.dicebear.com/7.x/pixel-art/svg?seed=${user.name}`,
}));

const getMockArchivedData = () =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const loader = async (): Promise<LoaderData> => {
const firstName = name.firstName();
return {
name: firstName,
avatar: `https://avatars.dicebear.com/api/identicon/${firstName}.svg`,
avatar: `https://api.dicebear.com/7.x/pixel-art/svg?seed=${firstName}`,
email: internet.email(),
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export const loader = async (): Promise<LoaderData> => {
const firstName = name.firstName();
return {
name: firstName,
avatar: `https://avatars.dicebear.com/api/identicon/${firstName}.svg`,
avatar: `https://api.dicebear.com/7.x/pixel-art/svg?seed=${firstName}`,
email: internet.email(),
archived: false,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const loader = async (): Promise<LoaderData> => {
const firstName = name.firstName();
return {
name: firstName,
avatar: `https://avatars.dicebear.com/api/identicon/${firstName}.svg`,
avatar: `https://api.dicebear.com/7.x/pixel-art/svg?seed=${firstName}`,
email: internet.email(),
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import DebugApp from "@site-docs/components/debug-app"
const getAvatar = (users: Array<{ name: string; email: string }>) =>
users.map(user => ({
...user,
avatar: `https://avatars.dicebear.com/v2/identicon/${user.name}.svg`,
avatar: `https://api.dicebear.com/7.x/pixel-art/svg?seed=${user.name}`,
}));

const mockData = getAvatar([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ import Item from '../components/Item';
const getAvatar = (users: Array<{ name: string, email: string }>) =>
users.map(user => ({
...user,
avatar: `https://avatars.dicebear.com/v2/identicon/${user.name}.svg`,
avatar: `https://api.dicebear.com/7.x/pixel-art/svg?seed=${user.name}`,
}));

const mockData = getAvatar([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import Item from '../../components/Item';
const getAvatar = (users: Array<{ name: string; email: string }>) =>
users.map(user => ({
...user,
avatar: `https://avatars.dicebear.com/v2/identicon/${user.name}.svg`,
avatar: `https://api.dicebear.com/7.x/pixel-art/svg?seed=${user.name}`,
}));

const getMockArchivedData = () =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const loader = async (): Promise<LoaderData> => {
const firstName = name.firstName();
return {
name: firstName,
avatar: `https://avatars.dicebear.com/api/identicon/${firstName}.svg`,
avatar: `https://api.dicebear.com/7.x/pixel-art/svg?seed=${firstName}`,
email: internet.email(),
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export const loader async (): Promise<LoaderData> => {
const firstName = name.firstName();
return {
name: firstName,
avatar: `https://avatars.dicebear.com/api/identicon/${firstName}.svg`,
avatar: `https://api.dicebear.com/7.x/pixel-art/svg?seed=${firstName}`,
email: internet.email(),
archived: false,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const loader = async (): Promise<LoaderData> => {
const firstName = name.firstName();
return {
name: firstName,
avatar: `https://avatars.dicebear.com/api/identicon/${firstName}.svg`,
avatar: `https://api.dicebear.com/7.x/pixel-art/svg?seed=${firstName}`,
email: internet.email(),
};
});
Expand Down

0 comments on commit 28d82ab

Please sign in to comment.