Skip to content

Commit

Permalink
fix: Update warning message style (#2938)
Browse files Browse the repository at this point in the history
* fix: Update warning message style

* fix: Format
  • Loading branch information
fzavalia committed Oct 4, 2023
1 parent 499a164 commit 95f389c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,13 @@
.WorldListPage .worlds-storage {
margin-bottom: 24px;
}

.WorldListPage .insufficient-storage-message {
display: flex;
align-items: center;
gap: 1rem;
background-color: var(--dark-two);
border-radius: 10px;
padding: 22px;
margin-bottom: 24px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import {
Dropdown,
Empty,
Icon as DCLIcon,
Popup,
Message,
MessageContent
Popup
} from 'decentraland-ui'
import { config } from 'config'
import { isDevelopment } from 'lib/environment'
Expand Down Expand Up @@ -287,28 +285,27 @@ const WorldListPage: React.FC<Props> = props => {
return null
}

let warning = false
let error = false
let messageContent: ReactNode

if (dclWorldsStatus.status === DCLWorldsStatus.TO_BE_BLOCKED) {
warning = true
messageContent = t('worlds_list_page.worlds_warning_message.to_be_blocked', {
toBeBlockedAt: dclWorldsStatus.toBeBlockedAt.toLocaleDateString(),
b: (text: string) => <b>{text}</b>
})
} else {
error = true
messageContent = t('worlds_list_page.worlds_warning_message.blocked', {
blockedAt: dclWorldsStatus.blockedAt.toLocaleDateString(),
b: (text: string) => <b>{text}</b>
})
}

return (
<Message warning={warning} error={error}>
<MessageContent>{messageContent}</MessageContent>
</Message>
<div className="insufficient-storage-message">
<div>
<Icon name="alert-warning" />
</div>
<div>{messageContent}</div>
</div>
)
}

Expand Down

1 comment on commit 95f389c

@vercel
Copy link

@vercel vercel bot commented on 95f389c Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder – ./

builder-decentraland1.vercel.app
builder-git-master-decentraland1.vercel.app

Please sign in to comment.