Merge pull request #310 from Ekiserrepe/main
Readme and xah value updated
This commit is contained in:
		@@ -1,8 +1,8 @@
 | 
			
		||||
# XRPL Hooks Builder
 | 
			
		||||
# Xahau Hooks Builder
 | 
			
		||||
 | 
			
		||||
https://hooks-builder.xrpl.org/
 | 
			
		||||
https://builder.xahau.network/
 | 
			
		||||
 | 
			
		||||
This is the repository for XRPL Hooks Builder. This project is built with Next.JS
 | 
			
		||||
This is the repository for Xahau Hooks Builder. This project is built with Next.JS
 | 
			
		||||
 | 
			
		||||
## General
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -210,9 +210,9 @@ const Navigation = () => {
 | 
			
		||||
                            as="a"
 | 
			
		||||
                            rel="noreferrer noopener"
 | 
			
		||||
                            target="_blank"
 | 
			
		||||
                            href="https://github.com/XRPL-Labs/xrpld-hooks"
 | 
			
		||||
                            href="https://github.com/Xahau"
 | 
			
		||||
                          >
 | 
			
		||||
                            <ArrowUpRight size="15px" /> Hooks Github
 | 
			
		||||
                            <ArrowUpRight size="15px" /> Xahau Github
 | 
			
		||||
                          </Text>
 | 
			
		||||
 | 
			
		||||
                          <Text
 | 
			
		||||
@@ -231,7 +231,7 @@ const Navigation = () => {
 | 
			
		||||
                            as="a"
 | 
			
		||||
                            rel="noreferrer noopener"
 | 
			
		||||
                            target="_blank"
 | 
			
		||||
                            href="https://xrpl-hooks.readme.io/docs"
 | 
			
		||||
                            href="https://docs.xahau.network/readme-1"
 | 
			
		||||
                          >
 | 
			
		||||
                            <ArrowUpRight size="15px" /> Hooks documentation
 | 
			
		||||
                          </Text>
 | 
			
		||||
 
 | 
			
		||||
@@ -129,7 +129,7 @@ export const TxUI: FC<UIProps> = ({
 | 
			
		||||
 | 
			
		||||
  const otherFields = Object.keys(txFields).filter(k => !richFields.includes(k)) as [keyof TxFields]
 | 
			
		||||
  const amountOptions = [
 | 
			
		||||
    { label: 'XAH', value: 'xrp' },
 | 
			
		||||
    { label: 'XAH', value: 'xah' },
 | 
			
		||||
    { label: 'Token', value: 'token' }
 | 
			
		||||
  ] as const
 | 
			
		||||
 | 
			
		||||
@@ -296,7 +296,7 @@ export const TxUI: FC<UIProps> = ({
 | 
			
		||||
                      value={isXrpAmount ? amountOptions['0'] : amountOptions['1']}
 | 
			
		||||
                      onChange={(e: any) => {
 | 
			
		||||
                        const opt = e as typeof amountOptions[number]
 | 
			
		||||
                        if (opt.value === 'xrp') {
 | 
			
		||||
                        if (opt.value === 'xah') {
 | 
			
		||||
                          setRawField(field, 'amount.xrp', '0')
 | 
			
		||||
                        } else {
 | 
			
		||||
                          setRawField(field, 'amount.token', defaultTokenAmount)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user