Skip to content

Commit

Permalink
rename display words
Browse files Browse the repository at this point in the history
  • Loading branch information
tak1827 committed Mar 11, 2024
1 parent 5328fd6 commit e9aac94
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/components/organisms/changeDepositModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ChangeDepositModal = (props: Props) => {
const [SOASVerseBuilder, setSOASVerseBuilder] = useState('');
const [OASAmount, setOASAmount] = useState('');
const [SOASAmount, setSOASAmount] = useState('');

const refreshL1BuildDeposit = useRefreshL1BuildDeposit();

const depositOAS = async () => {
Expand All @@ -45,6 +45,7 @@ export const ChangeDepositModal = (props: Props) => {
setDepositSuccess(`${oasAmount}${OASTokenUnit} deposit is successful`);
setOASAmount('');
setOASVerseBuilder('');
setDepositError('');
setIsDepositLoading(false);
refreshL1BuildDeposit();
});
Expand All @@ -67,6 +68,7 @@ export const ChangeDepositModal = (props: Props) => {
setDepositSuccess(`${oasAmount}${OASTokenUnit} withdraw is successful`);
setOASAmount('');
setOASVerseBuilder('');
setDepositError('');
setIsDepositLoading(false);
refreshL1BuildDeposit();
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/verseInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const VerseInfo = (props: Props) => {
{downloadError && (
<ErrorMsg text={ downloadError } className='w-full' />
)}
<p>Download verse config</p>
<p>Download Config Files</p>
<Table
heads={heads}
records={records}
Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/verseInfoV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const VerseInfoV2 = (props: Props) => {
return (
<div className={clsx(className)}>
{downloadError && <ErrorMsg text={downloadError} className='w-full' />}
<p>Download verse config</p>
<p>Download Config Files</p>
<Table heads={heads} records={records} />
{verseInfo?.namedAddresses && verseInfo?.deployConfig && (
<div className='flex flex-col space-y-2'>
Expand Down
4 changes: 2 additions & 2 deletions src/features/common/network.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MAINNET_CHAIN_ID, TESTNET_CHAIN_ID } from "@/consts";

export const getNetworkName = (chainId: number) => {
if (chainId === MAINNET_CHAIN_ID) return "Oasys mainnet";
if (chainId === TESTNET_CHAIN_ID) return "Oasys testnet";
if (chainId === MAINNET_CHAIN_ID) return "Oasys Mainnet";
if (chainId === TESTNET_CHAIN_ID) return "Oasys Testnet";
return "Unknown";
}

0 comments on commit e9aac94

Please sign in to comment.