Skip to content

Commit

Permalink
ui: remove maintenance mode
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalecks committed Oct 20, 2023
1 parent 7108a7b commit aaa8512
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 66 deletions.
15 changes: 1 addition & 14 deletions projects/ui/src/components/Barn/Actions/Buy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ const BuyForm: FC<
);
};

// eslint-disable-next-line unused-imports/no-unused-vars
const BuyPropProvider: FC<{}> = () => {
const sdk = useSdk();
const getEthPrice = useEthPriceFromBeanstalk();
Expand Down Expand Up @@ -534,19 +533,7 @@ const BuyPropProvider: FC<{}> = () => {

const Buy: React.FC<{}> = () => (
<FormTxnProvider>
{/* <BuyPropProvider /> */}
<div
style={{
border: '1px solid red',
background: '#f0a1a1',
borderRadius: '10px',
padding: '10px 10px',
color: '#860112',
textAlign: 'center',
}}
>
Temporarily disabled while BIP-38 migration is in progress
</div>
<BuyPropProvider />
</FormTxnProvider>
);

Expand Down
23 changes: 5 additions & 18 deletions projects/ui/src/components/Chop/Actions/Chop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ type ChopFormValues = FormState & {
destination: FarmToMode | undefined;
};

// eslint-disable-next-line unused-imports/no-unused-vars
const ChopForm: FC<
FormikProps<ChopFormValues> & {
balances: ReturnType<typeof useFarmerBalances>;
Expand Down Expand Up @@ -343,23 +342,11 @@ const Chop: FC<{}> = () => {
onSubmit={onSubmit}
>
{(formikProps: FormikProps<ChopFormValues>) => (
// <ChopForm
// balances={farmerBalances}
// beanstalk={beanstalk}
// {...formikProps}
// />
<div
style={{
border: '1px solid red',
background: '#f0a1a1',
borderRadius: '10px',
padding: '10px 10px',
color: '#860112',
textAlign: 'center',
}}
>
Temporarily disabled while BIP-38 migration is in progress
</div>
<ChopForm
balances={farmerBalances}
beanstalk={beanstalk}
{...formikProps}
/>
)}
</Formik>
);
Expand Down
20 changes: 0 additions & 20 deletions projects/ui/src/components/Silo/Actions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,26 +85,6 @@ const SiloActions: FC<{
? withdrawalItems.length > 0
: false;

if (['urBEANETH', 'urBEAN'].includes(token.symbol)) {
return (
<>
<div
style={{
border: '1px solid red',
background: '#f0a1a1',
borderRadius: '10px',
padding: '10px 10px',
color: '#860112',
textAlign: 'center',
}}
>
Interacting with {token.symbol} is temporarily disabled while BIP-38
migration is in progress
</div>
</>
);
}

return (
<>
<Module>
Expand Down
16 changes: 2 additions & 14 deletions projects/ui/src/pages/silo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -572,27 +572,15 @@ const RewardsBar: FC<{
hideIfZero
/>
</TokenOutput>
{/* <Button
<Button
disabled={empty}
variant="contained"
fullWidth
size="large"
onClick={handleSubmit}
>
Claim Rewards
</Button> */}
<div
style={{
border: '1px solid red',
background: '#f0a1a1',
borderRadius: '10px',
padding: '10px 10px',
color: '#860112',
textAlign: 'center',
}}
>
Temporarily disabled while BIP-38 migration is in progress
</div>
</Button>
<Row justifyContent="flex-end" spacing={0.5}>
{isEstimatingGas ? (
<CircularProgress thickness={3} size={16} />
Expand Down

0 comments on commit aaa8512

Please sign in to comment.