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

Network manager UI and logic #359

Merged
merged 53 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
d4f1e9e
fix: main page ui
AbbasAliLokhandwala May 10, 2024
32b840b
fix: card background ui
AbbasAliLokhandwala May 10, 2024
cc62099
fix: dropdown ui
AbbasAliLokhandwala May 10, 2024
9e1ec26
fix: rename account ui
AbbasAliLokhandwala May 10, 2024
d4033c6
fix: tab ui and bottom nav icons
AbbasAliLokhandwala May 10, 2024
a646e71
fix: bottom nav removed from more options
AbbasAliLokhandwala May 10, 2024
7e655a7
chore: add no-address page in address book
AbbasAliLokhandwala May 10, 2024
b033f49
fix: mnemonics ui
AbbasAliLokhandwala May 10, 2024
4d55ba7
fix: activity filter ui
AbbasAliLokhandwala May 13, 2024
957262c
fix: register mnemonics ui
AbbasAliLokhandwala May 13, 2024
019b892
fix: ibc and notiffication ui
AbbasAliLokhandwala May 13, 2024
f15b467
fix: form components ui
AbbasAliLokhandwala May 13, 2024
c425b80
fix: review changes
AbbasAliLokhandwala May 16, 2024
ae0df1c
chore: font family update to Lexand
AbbasAliLokhandwala May 16, 2024
5420899
fix: delete page ui
AbbasAliLokhandwala May 16, 2024
52473a1
fix: form components ui
AbbasAliLokhandwala May 16, 2024
ffc8d25
fix: transaction status ui
AbbasAliLokhandwala May 16, 2024
8b35c72
fix: line graph ui
AbbasAliLokhandwala May 16, 2024
31546da
fix: register page ui
AbbasAliLokhandwala May 16, 2024
3a4aaa7
fix: send page ui
AbbasAliLokhandwala May 16, 2024
03ba850
fix: minor ui fixes
AbbasAliLokhandwala May 16, 2024
9aba137
fix: choose recipient and address book ui
AbbasAliLokhandwala May 16, 2024
fd73a18
fix: asset view ui
AbbasAliLokhandwala May 16, 2024
97b940d
fix: more page components ui
AbbasAliLokhandwala May 16, 2024
8839f70
fix: minor ui bugs
AbbasAliLokhandwala May 16, 2024
47ccdc9
fix: bridge pages shifted to old ui
AbbasAliLokhandwala May 16, 2024
3baf46b
fix: ibc transfer ui
AbbasAliLokhandwala May 17, 2024
3f6a087
fix: bottom nav removed from connections and get-chain-infos
AbbasAliLokhandwala May 17, 2024
508e6e2
fix: register mnemonic button
AbbasAliLokhandwala May 17, 2024
adca314
fix: add ibc page
AbbasAliLokhandwala May 19, 2024
65eceec
fix: bridge page and ui bugs
AbbasAliLokhandwala May 19, 2024
c7ebc91
fix: delete wallet ui
AbbasAliLokhandwala May 21, 2024
3d2e22e
fix: autolock and currency ui
AbbasAliLokhandwala May 21, 2024
357ee15
fix: send page ui
AbbasAliLokhandwala May 21, 2024
2739cbd
chore: search bar in choose recipient
AbbasAliLokhandwala May 21, 2024
0a4f63d
fix: minor ui fixes
AbbasAliLokhandwala May 21, 2024
3f32b3c
chore: faded bottom nav
AbbasAliLokhandwala May 21, 2024
8773811
fix: header ui
AbbasAliLokhandwala May 21, 2024
f207547
fix: address tooltip
AbbasAliLokhandwala May 21, 2024
5c192a2
fix: view mnemonic seed ui
AbbasAliLokhandwala May 21, 2024
a8cc254
fix: header and view-mnemonic ui
AbbasAliLokhandwala May 22, 2024
e899ae7
fix: search bar logic
AbbasAliLokhandwala May 22, 2024
08e3f3c
fix: old header background
AbbasAliLokhandwala May 22, 2024
2561b0f
chore: show testnet
AbbasAliLokhandwala May 17, 2024
e434d59
chore: manage networks
AbbasAliLokhandwala May 19, 2024
716d5e2
chore: default top 5 networks and show testnet
AbbasAliLokhandwala May 20, 2024
c51a7a5
chore: toggle switch button and mid element
AbbasAliLokhandwala May 20, 2024
91c341e
chore: added chain symbol image and evm button
AbbasAliLokhandwala May 20, 2024
c0c6f48
fix: remove redundent add address modal
AbbasAliLokhandwala May 21, 2024
95e413c
fix: filter function in manage-networks
AbbasAliLokhandwala May 24, 2024
016f953
fix: persistent show testnet status
AbbasAliLokhandwala May 24, 2024
42f95b7
Merge branch 'master' into network-manager
AbbasAliLokhandwala May 28, 2024
f9fc805
fix: mid element margin, no results and disabled in search bar
AbbasAliLokhandwala May 28, 2024
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from "react";
import style from "./style.module.scss";

export const ToggleSwitchButton = ({
checked,
onChange,
}: {
checked: boolean;
onChange: () => void;
}) => {
return (
<div>
<label className={style["switch"]}>
<input type="checkbox" checked={checked} onChange={onChange} />
<span className={style["slider"]} />
</label>
</div>
);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
.switch {
position: relative;
display: inline-block;
width: 51px;
height: 31px;
margin: 0px;
input {
opacity: 0;
width: 0;
height: 0;

&:checked + .slider {
background-color: #5f38fb;
border: 1px solid transparent;
}

&:checked + .slider::before {
-webkit-transform: translateX(18px);
-ms-transform: translateX(18px);
transform: translateX(18px);
background-color: white;
}
}

.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
-webkit-transition: 0.4s;
transition: 0.4s;
border-radius: 34px;
border: 1px solid #5f38fb;

&::before {
position: absolute;
width: 27px;
content: "";
height: 27px;
left: 3px;
top: 1px;
background-color: white;
-webkit-transition: 0.4s;
transition: 0.4s;
border-radius: 50%;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,23 @@ interface Props {
name: string;
isChecked: boolean;
handleOnChange: () => void;
cardStyles?: any;
inActiveBackground?: any;
}

export const NotificationOption: FunctionComponent<Props> = (props) => {
const { name, isChecked, handleOnChange } = props;
const { name, isChecked, handleOnChange, cardStyles, inActiveBackground } =
props;

return (
<Card
heading={name}
style={{
...cardStyles,
}}
inActiveBackground={
inActiveBackground ? inActiveBackground : "transparent"
}
rightContent={
<label className={style["switch"]}>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ interface Props {
onSearchTermChange: (term: string) => void;
itemsStyleProp?: any;
filterFunction: any;
midElement?: React.ReactNode;
disabled?: boolean;
}

export const SearchBar: React.FC<Props> = ({
Expand All @@ -20,6 +22,8 @@ export const SearchBar: React.FC<Props> = ({
onSearchTermChange,
itemsStyleProp,
filterFunction,
midElement,
disabled,
}) => {
const [suggestedValues, setSuggestedValues] = useState<
any[] | _DeepReadonlyArray<AddressBookData>
Expand Down Expand Up @@ -51,18 +55,42 @@ export const SearchBar: React.FC<Props> = ({
id="searchInput"
placeholder="Search"
value={searchTerm}
disabled={disabled}
onChange={(e) => onSearchTermChange(e.target.value)}
/>
}
rightContent={require("@assets/svg/wireframe/search.svg")}
/>
{midElement && (
<div
style={{
marginBottom: "24px",
}}
>
{midElement}
</div>
)}

{suggestedValues.length > 0 && (
{suggestedValues.length > 0 ? (
<div style={itemsStyleProp}>
{suggestedValues.map((value, index) => (
<div key={index}>{renderResult(value, index)}</div>
))}
</div>
) : (
searchTerm.length > 0 && (
<div
style={{
textAlign: "center",
color: "white",
fontSize: "14px",
fontWeight: 400,
opacity: 1,
}}
>
No results found!
</div>
)
)}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
color: white;
}
}

.searchInput:disabled {
cursor: not-allowed;
}
Loading
Loading