Fixing default profile image
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.7 MiB |
+2
-2
@@ -982,7 +982,7 @@ const parseDataImage = (dataUrl: string) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const getDefaultBirdPhotoAttachment = () => {
|
const getDefaultBirdPhotoAttachment = () => {
|
||||||
const defaultPhotoPath = path.join(process.cwd(), 'assets', 'yoda.png');
|
const defaultPhotoPath = path.join(process.cwd(), 'assets', 'yoda-default.png');
|
||||||
|
|
||||||
if (!existsSync(defaultPhotoPath)) {
|
if (!existsSync(defaultPhotoPath)) {
|
||||||
console.warn(`Unable to load default bird photo from ${defaultPhotoPath}`);
|
console.warn(`Unable to load default bird photo from ${defaultPhotoPath}`);
|
||||||
@@ -990,7 +990,7 @@ const getDefaultBirdPhotoAttachment = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
filename: 'yoda.png',
|
filename: 'yoda-default.png',
|
||||||
path: defaultPhotoPath,
|
path: defaultPhotoPath,
|
||||||
cid: 'flockpal-default-bird-photo',
|
cid: 'flockpal-default-bird-photo',
|
||||||
contentDisposition: 'inline' as const,
|
contentDisposition: 'inline' as const,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useEffect, useMemo, useState } from 'react';
|
import { useEffect, useMemo, useState } from 'react';
|
||||||
import flockPalLandingArt from './assets/flockpal-landing-art.png';
|
import flockPalLandingArt from './assets/flockpal-landing-art.png';
|
||||||
import defaultBirdPhoto from './assets/yoda.png';
|
import defaultBirdPhoto from './assets/yoda-default.png';
|
||||||
import { findParrotWeightReference, parrotSpeciesOptions, type ParrotWeightReference } from './parrotWeightReference';
|
import { findParrotWeightReference, parrotSpeciesOptions, type ParrotWeightReference } from './parrotWeightReference';
|
||||||
|
|
||||||
type BillingPlan = 'rescue_free' | 'household_basic' | 'household_plus' | 'household_macaw';
|
type BillingPlan = 'rescue_free' | 'household_basic' | 'household_plus' | 'household_macaw';
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.7 MiB |
Reference in New Issue
Block a user