Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oct-1971: client refactor 1 #423

Draft
wants to merge 3 commits into
base: feature/oct-1857-octant-client-v1.5
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions client/src/components/Allocation/AllocationItem/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';

import { LeverageMatched } from 'api/calls/allocate';
import { AllocationValue } from 'components/Allocation/types';
import { ProjectIpfsWithRewards } from 'hooks/queries/useProjectsIpfsWithRewards';
import { AllocationValue } from 'views/AllocationView/types';

export interface AllocationItemWithAllocations extends ProjectIpfsWithRewards {
isAllocatedTo: boolean;
Expand All @@ -12,12 +12,7 @@ export interface AllocationItemWithAllocations extends ProjectIpfsWithRewards {
export default interface AllocationItemProps
extends Omit<
AllocationItemWithAllocations,
| 'totalValueOfAllocations'
| 'percentage'
| 'numberOfDonors'
| 'matchedRewards'
| 'donations'
| 'matchingFund'
'totalValueOfAllocations' | 'percentage' | 'numberOfDonors' | 'matchedRewards' | 'donations'
> {
className?: string;
isError: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const AllocationNavigation: FC<AllocationNavigationProps> = ({
onResetValues,
isWaitingForAllMultisigSignatures,
}) => {
const { t } = useTranslation('translation', {
const { i18n, t } = useTranslation('translation', {
keyPrefix: 'components.dedicated.allocationNavigation',
});

Expand All @@ -39,7 +39,7 @@ const AllocationNavigation: FC<AllocationNavigationProps> = ({
onClick: onAllocate,
}
: {
label: t('edit'),
label: i18n.t('common.edit'),
onClick: () => setCurrentView('edit'),
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const AllocationSliderBox: FC<AllocationSliderBoxProps> = ({
: 50;
const sections = [
{
header: isLocked ? t('donated') : t('donate'),
header: isLocked ? i18n.t('common.donated') : t('donate'),
value: getValuesToDisplay({
cryptoCurrency: 'ethereum',
showCryptoSuffix: true,
Expand Down

This file was deleted.

141 changes: 0 additions & 141 deletions client/src/components/Earn/EarnBoxGlmLock/EarnBoxGlmLock.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions client/src/components/Earn/EarnBoxGlmLock/types.ts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading