Skip to content

Commit c1ef7ac

Browse files
fix: build, test, lint
1 parent e1fb75f commit c1ef7ac

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

apps/loan/src/components/PageLlamaMarkets/cells/LineGraphCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function getColor(design: DesignSystem, data: LendingSnapshot[], type: GraphType
1515
if (!data.length) return undefined
1616
const first = data[0][`${type}_apy`]
1717
const last = data[data.length - 1][`${type}_apy`]
18-
return design.Text.TextColors[last === first ? 'Info' : last < first ? 'Error' : 'Success']
18+
return design.Layer.Feedback[last === first ? 'Info' : last < first ? 'Error' : 'Success']
1919
}
2020

2121
export const LineGraphCell = ({ vault, type }: { vault: LendingVault; type: GraphType }) => {

packages/curve-ui-kit/src/themes/stories/Alert.stories.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ import Alert, { AlertProps } from '@mui/material/Alert'
44
import Stack from '@mui/material/Stack'
55

66
const AlertStory = (props: AlertProps) => (
7-
<Stack spacing={5}>
8-
<Alert severity="success" {...props}>
9-
<AlertTitle>Success</AlertTitle>A success text message is displayed. A little llama is happy 😊
10-
</Alert>
11-
<Alert severity="info" {...props}>
12-
<AlertTitle>Info</AlertTitle>A info text message is displayed. A little llama is curious 🤔
13-
</Alert>
14-
<Alert severity="warning" {...props}>
15-
<AlertTitle>Warning</AlertTitle>A warning text message is displayed. A little llama is cautious 🦙.
16-
</Alert>
17-
<Alert severity="error" {...props}>
18-
<AlertTitle>Error</AlertTitle>
19-
An error text message is displayed. A little llama is very sad 😔
20-
</Alert>
21-
</Stack>
22-
)
7+
<Stack spacing={5}>
8+
<Alert severity="success" {...props}>
9+
<AlertTitle>Success</AlertTitle>A success text message is displayed. A little llama is happy 😊
10+
</Alert>
11+
<Alert severity="info" {...props}>
12+
<AlertTitle>Info</AlertTitle>A info text message is displayed. A little llama is curious 🤔
13+
</Alert>
14+
<Alert severity="warning" {...props}>
15+
<AlertTitle>Warning</AlertTitle>A warning text message is displayed. A little llama is cautious 🦙.
16+
</Alert>
17+
<Alert severity="error" {...props}>
18+
<AlertTitle>Error</AlertTitle>
19+
An error text message is displayed. A little llama is very sad 😔
20+
</Alert>
21+
</Stack>
22+
)
2323

2424
const meta: Meta<typeof AlertStory> = {
2525
title: 'UI Kit/Primitives/Alert',

tests/cypress/e2e/loan/llamalend-markets.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('LlamaLend Markets', () => {
3333
})
3434

3535
it('should show graphs', () => {
36-
const [green, red] = [isDarkMode ? 'rgb(39, 184, 108)' : 'rgb(31, 162, 94)', 'rgb(237, 36, 47)']
36+
const [green, red] = [isDarkMode ? 'rgb(50, 206, 121)' : 'rgb(31, 162, 94)', 'rgb(237, 36, 47)']
3737
cy.get('[data-testid="line-graph-cell-lend"] path').first().should('have.css', 'stroke', green)
3838
cy.get('[data-testid="line-graph-cell-borrow"] path').first().should('have.css', 'stroke', red)
3939

0 commit comments

Comments
 (0)