Skip to content

Commit

Permalink
Merge pull request #26767 from brave/dep-update-nala
Browse files Browse the repository at this point in the history
[Nala / @brave/leo] update dependency
  • Loading branch information
petemill authored Nov 27, 2024
2 parents d943a0f + d607fd9 commit 5f82987
Show file tree
Hide file tree
Showing 18 changed files with 10 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ function ErrorConnection (props: PromptAutoSuggestionProps) {
return (
<div className={styles.alert}>
<Alert
mode='full'
type='error'
>
{getLocale('errorNetworkLabel')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ function ErrorConversationEnd() {
return (
<div className={styles.alert}>
<Alert
mode='full'
type='error'
>
{getLocale('errorConversationEnd')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default function ErrorInvalidEndpointURL () {
return (
<div className={styles.alert}>
<Alert
mode='full'
type='error'
>
{getLocale('customModelInvalidEndpoint')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function ErrorRateLimit() {
return (
<div className={styles.alert}>
<Alert
mode='full'
type='warning'
>
{getLocale('errorRateLimit')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export default function WarningPremiumDisconnected() {
return (
<div className={styles.alert}>
<Alert
mode='full'
type='warning'
>
{getLocale('premiumRefreshWarningDescription')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ function ContextMenuAssistant_(
.then((resp) => {
if (!resp.ratingId) {
showAlert({
mode: 'simple',
type: 'error',
content: getLocale('ratingError'),
actions: []
Expand All @@ -65,7 +64,6 @@ function ContextMenuAssistant_(

setCurrentRatingStatus(RatingStatus.Liked)
showAlert({
mode: 'simple',
type: 'info',
content: getLocale('answerLiked'),
actions: []
Expand All @@ -81,7 +79,6 @@ function ContextMenuAssistant_(
.then((resp) => {
if (!resp.ratingId) {
showAlert({
mode: 'simple',
type: 'error',
content: getLocale('ratingError'),
actions: []
Expand All @@ -93,7 +90,6 @@ function ContextMenuAssistant_(
setFeedbackId(resp.ratingId)
setCurrentRatingStatus(RatingStatus.Disliked)
showAlert({
mode: 'simple',
type: 'info',
content: getLocale('answerDisliked'),
actions: [
Expand All @@ -118,7 +114,6 @@ function ContextMenuAssistant_(
.then((resp) => {
if (!resp.isSuccess) {
showAlert({
mode: 'simple',
type: 'error',
content: getLocale('feedbackError'),
actions: []
Expand All @@ -128,7 +123,6 @@ function ContextMenuAssistant_(
}

showAlert({
mode: 'simple',
type: 'success',
content: getLocale('feedbackSent'),
actions: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ function ErrorPanel(props: Props) {
<S.TopContent>
<S.StyledAlert
type='error'
mode='full'
hideIcon
>
<div slot='title'>{getLocale('braveVpnUnableConnectToServer')}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ function MainPanel() {
{expired && (
<S.StyledAlert
type='warning'
mode='full'
hideIcon
>
<div slot='title'>{getLocale('braveVpnSessionExpiredTitle')}</div>
Expand All @@ -189,7 +188,6 @@ function MainPanel() {
{outOfCredentials && (
<S.StyledAlert
type='warning'
mode='full'
hideIcon
>
<div slot='title'>{getLocale('braveVpnOutOfCredentials')}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ function PurchaseFailedPanel(props: Props) {
<S.EmptyPanelHeader />
<S.StyledAlert
type='error'
mode='full'
hideIcon
>
{title}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const WalletBanner = (props: Props) => {
<StyledWrapper>
<Alert
type={bannerType}
mode='full'
>
<Icon
slot='icon'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export function TxWarningBanner({
<FullWidth>
<Alert
type={retrySimulation ? 'info' : isCritical ? 'error' : 'warning'}
mode='simple'
>
<div slot='icon'>{/* No Icon */}</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ export const EditGas = ({
{getLocale('braveWalletEditGasBaseFee')}
</CurrentBaseText>
<CurrentBaseText>
{`${new Amount(baseFeePerGas).divideByDecimals(9).format()}
{`${new Amount(baseFeePerGas).divideByDecimals(9).format()}
${getLocale('braveWalletEditGasGwei')}`}
</CurrentBaseText>
</CurrentBaseRow>
Expand Down Expand Up @@ -427,7 +427,6 @@ export const EditGas = ({
{isCustomGasBelowBaseFee && (
<Row margin={'16px 0px'}>
<Alert
mode='simple'
type='error'
>
<Column
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const SpeedUpAlert = (props: Props) => {
return (
<Alert
type='info'
mode='simple'
>
{getLocale('braveWalletTransactionTakingLongTime')}
<div slot='content-after'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,6 @@ export const AddNftForm = (props: Props) => {

{!userOwnsNft && (
<Alert
mode='simple'
type='info'
>
{getLocale('braveWalletUnownedNftAlert')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ export const NftScreen = ({ selectedAsset, tokenNetwork }: Props) => {
) && (
<>
<Alert
mode='simple'
type='info'
>
{getLocale('braveWalletUnownedNftAlert')}
Expand Down
1 change: 0 additions & 1 deletion components/playlist/browser/resources/playerEventSink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ function handlePlayerEvents(payload: PlayerEventsPayload) {
content: getLocalizedString(
'bravePlaylistFailedToPlayDescription'
).replace('$1', payload.data.name),
mode: 'full',
type: 'error',
actions: [
{
Expand Down
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
},
"dependencies": {
"@brave/brave-ui": "0.40.6",
"@brave/leo": "github:brave/leo#5e79418b1937e4c524f6d40c58e14f34be5711a8",
"@brave/leo": "github:brave/leo#134e0edbd59f27c70eaf51431245667c44097c57",
"@brave/leo-sf-symbols": "github:brave/leo-sf-symbols#8685eec0851afa96d23dd424cd152854476e585d",
"@brave/wallet-standard-brave": "0.0.13",
"@dnd-kit/core": "6.0.5",
Expand Down

0 comments on commit 5f82987

Please sign in to comment.