Skip to content

Commit

Permalink
chore: clean code, improve network page
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Feb 12, 2024
1 parent 0972a14 commit 2fa5ef1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
15 changes: 0 additions & 15 deletions src/app/components/centered-page-container.tsx

This file was deleted.

7 changes: 4 additions & 3 deletions src/app/features/add-network/add-network.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ import { RouteUrls } from '@shared/route-urls';
import { isValidUrl } from '@shared/utils/validate-url';

import { removeTrailingSlash } from '@app/common/url-join';
import { CenteredPageContainer } from '@app/components/centered-page-container';
import { ErrorLabel } from '@app/components/error-label';
import {
useCurrentStacksNetworkState,
useNetworksActions,
} from '@app/store/networks/networks.hooks';
import { Button } from '@app/ui/components/button/button';
import { Input } from '@app/ui/components/input/input';
import { Page } from '@app/ui/components/layout/page/page.layout';
import { Title } from '@app/ui/components/typography/title';

/**
Expand Down Expand Up @@ -101,7 +101,7 @@ export function AddNetwork() {
}, [bitcoinApi, setStacksUrl, setBitcoinUrl]);

return (
<CenteredPageContainer>
<Page>
<Formik
initialValues={addNetworkFormValues}
onSubmit={async () => {
Expand Down Expand Up @@ -205,6 +205,7 @@ export function AddNetwork() {
maxWidth="centeredPageFullWidth"
px={['space.05', 'space.04']}
textAlign={['left', 'center']}
marginBottom="space.05"
>
<styled.span textStyle="body.02">
Use this form to add a new instance of the{' '}
Expand Down Expand Up @@ -313,6 +314,6 @@ export function AddNetwork() {
</form>
)}
</Formik>
</CenteredPageContainer>
</Page>
);
}

0 comments on commit 2fa5ef1

Please sign in to comment.