Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Icon To Address Book + Button #181

Merged
merged 3 commits into from
Feb 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
- Add ability to send JUP directly from the address book component
- Displays the last block time on the Generators page in 24hr time format instead of 12hr
- Remove My Accounts from gear menu

## 0.0.4

- Add icon and text to address book add button
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jupiter-wallet",
"version": "0.0.3",
"version": "0.0.4",
"private": true,
"scripts": {
"proxy": "node proxy/server.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import useBreakpoint from "hooks/useBreakpoint";
import useAPIRouter from "hooks/useAPIRouter";
import { NXTtoNQT } from "utils/common/NXTtoNQT";
import { BigNumber } from "bignumber.js";
import AddIcon from "@mui/icons-material/Add";

interface IAddNewAddressInputProps {
setNewAddressFn?: (address: string) => void;
Expand Down Expand Up @@ -50,8 +51,8 @@ const AddNewAddressInput: React.FC<IAddNewAddressInputProps> = ({ setNewAddressF
</Button>
</Stack>
) : (
<StyledPlusButton onClick={toggleAddressMode} variant="outlined">
+
<StyledPlusButton onClick={toggleAddressMode} color="primary" variant="outlined" endIcon={<AddIcon />}>
Add
</StyledPlusButton>
)}
</>
Expand Down Expand Up @@ -217,7 +218,6 @@ const AddressBook: React.FC = () => {
};

const StyledPlusButton = styled(Button)(() => ({
width: "5%",
position: "absolute",
top: "40px",
right: "25px",
Expand Down