Unverified Commit 91eec2c6 authored by Hanwen Cheng's avatar Hanwen Cheng Committed by GitHub
Browse files

fix: identities switch bottom shadow blocks button (#594)

* fix: identities switch bottom shadow blocks button

* fix: substrateSign signature
parent ceeed812
Pipeline #87755 failed with stages
in 3 minutes and 26 seconds
......@@ -236,7 +236,7 @@ function IdentitiesSwitch({
{identities.length > 5 && (
<Separator
shadow={true}
style={{ backgroundColor: 'transparent', marginTop: 0 }}
style={styles.identitiesListSeparator}
shadowStyle={{ opacity: 0.9 }}
/>
)}
......@@ -336,6 +336,11 @@ const styles = StyleSheet.create({
paddingLeft: 64,
paddingTop: 0
},
identitiesListSeparator: {
backgroundColor: 'transparent',
marginTop: 10,
zIndex: -1
},
indentedButton: {
paddingLeft: 32
}
......
......@@ -5,7 +5,7 @@ import { SeedRef } from 'utils/native';
type IsValidFunc = () => boolean;
type TryCreateFunc = (encryptedSeed: string, password: string) => Promise<void>;
type TryDestroyFunc = () => Promise<void>;
type TrySignFunc = (message: string) => Promise<string>;
type TrySignFunc = (suriSuffix: string, message: string) => Promise<string>;
type SeedRefHooks = {
isValid: IsValidFunc;
......@@ -48,8 +48,11 @@ export function useSeedRef(): SeedRefHooks {
// Use the seed reference to sign a message. Will throw an error if
// `tryDestroy` has already been called or if `tryCreate` failed.
const substrateSign: TrySignFunc = function (message: string) {
return seedRef.trySubstrateSign(message);
const substrateSign: TrySignFunc = function (
suriSuffix: string,
message: string
) {
return seedRef.trySubstrateSign(suriSuffix, message);
};
return { brainWalletSign, create, destroy, isValid, substrateSign };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment