Skip to content

Commit

Permalink
Change docs faq route url
Browse files Browse the repository at this point in the history
  • Loading branch information
gemcoder21 committed May 17, 2024
1 parent b884c25 commit 766368c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gemstone/src/config/docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ const DOCS_URL: &str = "https://docs.gemwallet.com";

pub fn get_docs_url(item: DocsUrl) -> String {
let path = match item {
DocsUrl::WhatIsWatchWallet => "/faqs/watch-wallet/",
DocsUrl::WhatIsSecretPhrase => "/faqs/secret-recovery-phrase/",
DocsUrl::WhatIsPrivateKey => "/faqs/private-key/",
DocsUrl::HowToSecureSecretPhrase => "/faqs/secure-recovery-phrase/",
DocsUrl::TransactionStatus => "/faqs/transaction-status/",
DocsUrl::WhatIsWatchWallet => "/faq/watch-wallet/",
DocsUrl::WhatIsSecretPhrase => "/faq/secret-recovery-phrase/",
DocsUrl::WhatIsPrivateKey => "/faq/private-key/",
DocsUrl::HowToSecureSecretPhrase => "/faq/secure-recovery-phrase/",
DocsUrl::TransactionStatus => "/faq/transaction-status/",
};
format!("{}{}", DOCS_URL, path)
}
Expand All @@ -28,7 +28,7 @@ mod tests {
fn test_get_docs_url() {
assert_eq!(
get_docs_url(DocsUrl::WhatIsSecretPhrase),
"https://docs.gemwallet.com/faqs/secret-recovery-phrase/"
"https://docs.gemwallet.com/faq/secret-recovery-phrase/"
);
}
}

0 comments on commit 766368c

Please sign in to comment.