Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-extension into imamahzafar/show-ordinal-in-psbt-signing
  • Loading branch information
Imamah-Zafar committed May 4, 2023
2 parents 0ce326c + cf60028 commit ea096f1
Show file tree
Hide file tree
Showing 49 changed files with 1,820 additions and 1,546 deletions.
1,223 changes: 689 additions & 534 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"dependencies": {
"@react-spring/web": "^9.6.1",
"@secretkeylabs/xverse-core": "0.16.1",
"@secretkeylabs/xverse-core": "0.17.0",
"@stacks/connect": "^6.10.2",
"@stacks/encryption": "4.3.5",
"@stacks/stacks-blockchain-api-types": "^6.1.1",
Expand Down Expand Up @@ -46,7 +46,7 @@
"react-tooltip": "^5.4.0",
"redux": "^4.0.5",
"redux-persist": "^6.0.0",
"sats-connect": "^0.1.11",
"sats-connect": "0.2.0",
"stream-browserify": "^3.0.0",
"string-to-color": "^2.2.2",
"styled-components": "^5.3.5",
Expand Down
10 changes: 7 additions & 3 deletions src/app/components/AlertMessage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,29 @@ const Container = styled.div((props) => ({
width: 312,
borderRadius: 12,
zIndex: 16000,
background: props.theme.colors.background.elevation2,
background: props.theme.colors.background.elevation3,
filter: 'drop-shadow(0px 16px 36px rgba(0, 0, 0, 0.5))',
}));

const HeaderText = styled.h1((props) => ({
...props.theme.body_bold_m,
fontSize: 16,
flex: 1,
}));

const DescriptionText = styled.h1((props) => ({
...props.theme.body_m,
color: props.theme.colors.white[200],
margin: 16,
fontSize: 16,
}));

const RowContainer = styled.div((props) => ({
display: 'flex',
flexDirection: 'row',
padding: '20px 16px 16px 16px',
alignItems: 'space-between',
borderBottom: `1px solid ${props.theme.colors.background.elevation3}`,
borderBottom: `1px solid ${props.theme.colors.background.elevation6}`,
}));

const TickMarkButtonContainer = styled.div((props) => ({
Expand Down Expand Up @@ -110,6 +112,7 @@ interface Props {
description: string;
buttonText?: string;
secondButtonText?: string;
isWarningAlert?: boolean;
tickMarkButtonText?: string;
onButtonClick?: () => void;
onSecondButtonClick?: () => void;
Expand All @@ -118,7 +121,7 @@ interface Props {
}

function AlertMessage({
onClose, title, description, buttonText, secondButtonText, tickMarkButtonText, onButtonClick, onSecondButtonClick, tickMarkButtonClick,
onClose, title, description, buttonText, secondButtonText, tickMarkButtonText, isWarningAlert, onButtonClick, onSecondButtonClick, tickMarkButtonClick,
}: Props) {
return (
<>
Expand All @@ -143,6 +146,7 @@ function AlertMessage({
<ActionButton
text={secondButtonText ?? 'Yes'}
onPress={onSecondButtonClick}
warning={isWarningAlert}
/>
</ButtonContainer>
)}
Expand Down

This file was deleted.

Loading

0 comments on commit ea096f1

Please sign in to comment.