Skip to content

Commit 4e613b1

Browse files
evanpurkhiserbillyvg
authored andcommitted
ref(ui): Remove rarely used Well component (#93529)
1 parent f8f4908 commit 4e613b1

File tree

3 files changed

+19
-25
lines changed

3 files changed

+19
-25
lines changed

static/app/components/avatarUploader.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import styled from '@emotion/styled';
33

44
import {addErrorMessage} from 'sentry/actionCreators/indicator';
55
import {Button} from 'sentry/components/core/button';
6-
import Well from 'sentry/components/well';
76
import {AVATAR_URL_MAP} from 'sentry/constants';
87
import {t, tct} from 'sentry/locale';
8+
import {space} from 'sentry/styles/space';
99
import type {AvatarUser} from 'sentry/types/user';
1010

1111
const ALLOWED_MIMETYPES = 'image/gif,image/jpeg,image/png';
@@ -409,7 +409,7 @@ class AvatarUploader extends Component<Props, State> {
409409

410410
const upload = <a onClick={this.uploadClick} />;
411411
const uploader = (
412-
<Well hasImage centered>
412+
<Well>
413413
<p>{tct('[upload:Upload an image] to get started.', {upload})}</p>
414414
</Well>
415415
);
@@ -490,3 +490,12 @@ const Resizer = styled('div')<{position: Position}>`
490490
const HiddenCanvas = styled('canvas')`
491491
display: none;
492492
`;
493+
494+
const Well = styled('div')`
495+
border: 1px solid ${p => p.theme.border};
496+
background: ${p => p.theme.backgroundSecondary};
497+
padding: 80px ${space(4)};
498+
margin-bottom: 20px;
499+
border-radius: 3px;
500+
text-align: center;
501+
`;

static/app/components/well.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

static/gsAdmin/views/relocationCreate.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {Client} from 'sentry/api';
66
import {Button} from 'sentry/components/core/button';
77
import {CompactSelect} from 'sentry/components/core/compactSelect';
88
import {Input} from 'sentry/components/core/input';
9-
import Well from 'sentry/components/well';
109
import ConfigStore from 'sentry/stores/configStore';
1110
import {space} from 'sentry/styles/space';
1211
import {browserHistory} from 'sentry/utils/browserHistory';
@@ -127,7 +126,7 @@ function RelocationForm() {
127126
setRegion(reg);
128127
}}
129128
/>
130-
<UploadWell centered>
129+
<UploadWell>
131130
<UploadInput
132131
name="file"
133132
type="file"
@@ -170,8 +169,14 @@ function RelocationForm() {
170169
);
171170
}
172171

173-
const UploadWell = styled(Well)`
172+
const UploadWell = styled('div')`
174173
margin-top: ${space(2)};
174+
margin-bottom: ${space(3)};
175+
border: 1px solid ${p => p.theme.border};
176+
background: ${p => p.theme.backgroundSecondary};
177+
padding: ${space(2)} ${space(3)};
178+
border-radius: 3px;
179+
text-align: center;
175180
`;
176181

177182
const UploadInput = styled('input')`

0 commit comments

Comments
 (0)