fix: update empty list image source to use S3 URL for consistency across components
This commit is contained in:
@@ -8,7 +8,7 @@ type EmptyListPlaceholderProps = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const EmptyListPlaceholder = ({
|
const EmptyListPlaceholder = ({
|
||||||
imageSrc = '/src/assets/images/empty-box.webp',
|
imageSrc = 'https://s3.us-west-2.amazonaws.com/worklenz.com/assets/empty-box.webp',
|
||||||
imageHeight = 60,
|
imageHeight = 60,
|
||||||
text,
|
text,
|
||||||
}: EmptyListPlaceholderProps) => {
|
}: EmptyListPlaceholderProps) => {
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ const RecentAndFavouriteProjectList = () => {
|
|||||||
<div style={{ maxHeight: 420, overflow: 'auto' }}>
|
<div style={{ maxHeight: 420, overflow: 'auto' }}>
|
||||||
{projectsData?.body?.length === 0 ? (
|
{projectsData?.body?.length === 0 ? (
|
||||||
<Empty
|
<Empty
|
||||||
image="https://app.worklenz.com/assets/images/empty-box.webp"
|
image="https://s3.us-west-2.amazonaws.com/worklenz.com/assets/empty-box.webp"
|
||||||
imageStyle={{ height: 60 }}
|
imageStyle={{ height: 60 }}
|
||||||
style={{
|
style={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ const TasksList: React.FC = React.memo(() => {
|
|||||||
<Skeleton active />
|
<Skeleton active />
|
||||||
) : data?.body.total === 0 ? (
|
) : data?.body.total === 0 ? (
|
||||||
<EmptyListPlaceholder
|
<EmptyListPlaceholder
|
||||||
imageSrc="https://app.worklenz.com/assets/images/empty-box.webp"
|
imageSrc="https://s3.us-west-2.amazonaws.com/worklenz.com/assets/empty-box.webp"
|
||||||
text=" No tasks to show."
|
text=" No tasks to show."
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ const TodoList = () => {
|
|||||||
<div style={{ maxHeight: 420, overflow: 'auto' }}>
|
<div style={{ maxHeight: 420, overflow: 'auto' }}>
|
||||||
{data?.body.length === 0 ? (
|
{data?.body.length === 0 ? (
|
||||||
<EmptyListPlaceholder
|
<EmptyListPlaceholder
|
||||||
imageSrc="/src/assets/images/empty-box.webp"
|
imageSrc="https://s3.us-west-2.amazonaws.com/worklenz.com/assets/empty-box.webp"
|
||||||
text={t('home:todoList.noTasks')}
|
text={t('home:todoList.noTasks')}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ const ProjectViewMembers = () => {
|
|||||||
>
|
>
|
||||||
{members?.total === 0 ? (
|
{members?.total === 0 ? (
|
||||||
<EmptyListPlaceholder
|
<EmptyListPlaceholder
|
||||||
imageSrc="https://app.worklenz.com/assets/images/empty-box.webp"
|
imageSrc="https://s3.us-west-2.amazonaws.com/worklenz.com/assets/empty-box.webp"
|
||||||
imageHeight={120}
|
imageHeight={120}
|
||||||
text={t('emptyText')}
|
text={t('emptyText')}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user