-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: rename strategies feature (#1247)
- Loading branch information
Showing
29 changed files
with
135 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { StrategyFormType } from '@/pages/Strategies/types/form'; | ||
|
||
import yup, { MaxAmountValidationParams, MinAmountValidationParams } from '../yup.custom'; | ||
|
||
type StrategyValidationParams = MaxAmountValidationParams & MinAmountValidationParams; | ||
|
||
const StrategySchema = ( | ||
StrategyFormType: StrategyFormType, | ||
params: StrategyValidationParams | ||
): yup.ObjectSchema<any> => { | ||
return yup.object().shape({ | ||
[StrategyFormType]: yup | ||
.string() | ||
.requiredAmount(StrategyFormType) | ||
.maxAmount(params) | ||
.minAmount(params, StrategyFormType) | ||
}); | ||
}; | ||
|
||
export { StrategySchema }; | ||
export type { StrategyValidationParams }; |
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
src/pages/EarnStrategies/components/EarnStrategyForm/EarnStrategyDepositForm/index.ts
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
src/pages/EarnStrategies/components/EarnStrategyForm/EarnStrategyWithdrawalForm/index.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { withErrorBoundary } from 'react-error-boundary'; | ||
|
||
import ErrorFallback from '@/legacy-components/ErrorFallback'; | ||
|
||
import { StrategyForm } from './components/StrategyForm'; | ||
import { StyledStrategiesLayout } from './Strategies.style'; | ||
|
||
const Strategies = (): JSX.Element => { | ||
return ( | ||
<StyledStrategiesLayout> | ||
<StrategyForm riskVariant='low' /> | ||
</StyledStrategiesLayout> | ||
); | ||
}; | ||
|
||
export default withErrorBoundary(Strategies, { | ||
FallbackComponent: ErrorFallback, | ||
onReset: () => { | ||
window.location.reload(); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/pages/Strategies/components/StrategyForm/StrategyDepositForm/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { StrategyDepositForm } from './StrategyDepositForm'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c845c54
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
interbtc-ui-interlay-testnet – ./
interbtc-ui-interlay-testnet-interlay.vercel.app
interbtc-ui-interlay-testnet.vercel.app
testnet.interlay.io
interbtc-ui-interlay-testnet-git-master-interlay.vercel.app