Skip to content

Commit

Permalink
v5.3.2
Browse files Browse the repository at this point in the history
v5.3.2
  • Loading branch information
platschi authored Dec 22, 2022
2 parents c82bb2a + e3603db commit c719e14
Show file tree
Hide file tree
Showing 27 changed files with 609 additions and 267 deletions.
128 changes: 0 additions & 128 deletions .github/workflows/audit_build_verify.yml

This file was deleted.

3 changes: 3 additions & 0 deletions assets/svg/app/eligible.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/svg/app/link-arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/svg/app/not-eligible.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions assets/svg/futures/deposit-withdraw-arrows.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion components/Badge/Badge.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components';

const Badge = styled.span<{ color: 'yellow' | 'red' }>`
const Badge = styled.span<{ color: 'yellow' | 'red' | 'gray' }>`
text-transform: uppercase;
padding: 1.6px 3px 1px 3px;
text-align: center;
Expand Down
19 changes: 18 additions & 1 deletion components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export type ButtonVariant =
| 'success'
| 'danger'
| 'text'
| 'select';
| 'select'
| 'yellow';

type ButtonProps = {
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
Expand Down Expand Up @@ -90,6 +91,22 @@ const Button = styled.button<ButtonProps>`
}
`};
${(props) =>
props.variant === 'yellow' &&
css`
background: ${(props) => props.theme.colors.selectedTheme.button.yellow.fill};
border: 1px solid ${(props) => props.theme.colors.selectedTheme.button.yellow.border};
color: ${(props) => props.theme.colors.selectedTheme.button.yellow.text};
box-shadow: none;
&:hover {
background: ${(props) => props.theme.colors.selectedTheme.button.yellow.fillHover};
}
&::before {
display: none;
}
`};
${(props) =>
props.mono
? css`
Expand Down
77 changes: 64 additions & 13 deletions components/InfoBox/InfoBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export type DetailedInfo = {
valueNode?: React.ReactNode;
color?: 'green' | 'red' | 'gold' | undefined;
spaceBeneath?: boolean;
compactBox?: boolean;
};

type InfoBoxProps = {
Expand All @@ -26,20 +27,24 @@ const InfoBox: React.FC<InfoBoxProps> = ({ details, style, className, disabled,
if (value) {
return (
<React.Fragment key={key}>
<div>
<div className="key">
{key}: {value.keyNode}
{value.compactBox ? (
<>{value.keyNode}</>
) : (
<div>
<div className="key">
{key}: {value.keyNode}
</div>
<p
data-testid={`${dataTestId}-${index}`}
className={`${disabled ? 'value closed' : 'value'}${
value.color ? ` ${value.color}` : ''
}`}
>
{disabled ? NO_VALUE : value.value}
{value.valueNode}
</p>
</div>
<p
data-testid={`${dataTestId}-${index}`}
className={`${disabled ? 'value closed' : 'value'}${
value.color ? ` ${value.color}` : ''
}`}
>
{disabled ? NO_VALUE : value.value}
{value.valueNode}
</p>
</div>
)}
{value?.spaceBeneath && <br />}
</React.Fragment>
);
Expand All @@ -57,6 +62,45 @@ const InfoBoxContainer = styled.div`
box-sizing: border-box;
width: 100%;
.compact-box {
color: ${(props) => props.theme.colors.selectedTheme.rewardTitle};
font-size: 13px;
padding-left: 8px;
cursor: pointer;
margin-top: 16px;
.reward-copy {
color: ${(props) => props.theme.colors.selectedTheme.text.title};
}
.badge {
font-family: ${(props) => props.theme.fonts.black};
padding: 0px 6px;
border-radius: 100px;
font-variant: all-small-caps;
}
.badge-red {
color: ${(props) => props.theme.colors.selectedTheme.badge['red'].text};
background: ${(props) => props.theme.colors.selectedTheme.badge['red'].background};
min-width: 100px;
}
.badge-yellow {
color: ${(props) => props.theme.colors.selectedTheme.badge['yellow'].text};
background: ${(props) => props.theme.colors.selectedTheme.badge['yellow'].background};
min-width: 70px;
}
}
.border-red {
border-left: 3px solid ${(props) => props.theme.colors.selectedTheme.badge['red'].background};
}
.border-yellow {
border-left: 3px solid ${(props) => props.theme.colors.selectedTheme.badge['yellow'].background};
}
div {
display: flex;
justify-content: space-between;
Expand All @@ -80,6 +124,13 @@ const InfoBoxContainer = styled.div`
cursor: default;
}
.key {
color: ${(props) => props.theme.colors.selectedTheme.text.title};
font-size: 13px;
text-transform: capitalize;
cursor: default;
}
.red {
color: ${(props) => props.theme.colors.selectedTheme.red};
}
Expand Down
Loading

1 comment on commit c719e14

@vercel
Copy link

@vercel vercel bot commented on c719e14 Dec 22, 2022

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:

kwenta – ./

kwenta-kwenta.vercel.app
kwenta-git-main-kwenta.vercel.app
kwenta.io
dev.kwenta.io

Please sign in to comment.