Skip to content

select component looks strange #137

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

Merged
merged 1 commit into from
Apr 4, 2025
Merged
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
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export const App = () => {
renderAs="div"
onClick={onLogout}
>
<Button>Logout</Button>
<Button renderAs="button">Logout</Button>
</Navbar.Item>
</Navbar.Container>
)}
Expand Down
3 changes: 3 additions & 0 deletions src/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ const Home = ({
<Form.Label>Select file(s) lifetime</Form.Label>
<Form.Control>
<Form.Select
renderAs="select"
onChange={(e: any) => setLifetimeData(e.target.value)}
value={lifetimeData}
disabled={isLoading}
Expand All @@ -196,6 +197,7 @@ const Home = ({
</Form.Control>
</Form.Field>
<Button
renderAs="button"
color="primary"
onClick={onUpload}
style={{ margin: '0 0 0.75rem 2rem' }}
Expand All @@ -212,6 +214,7 @@ const Home = ({
{fileItem.name}
{!isLoading && (
<Button
renderAs="button"
onClick={(e: any) => handleFile(e, true, index)}
remove
/>
Expand Down
2 changes: 2 additions & 0 deletions src/Load.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ const Load = ({
<Heading weight="semibold" subtitle style={{ textAlign: 'center' }}>Download your files via HTTP gate</Heading>
<Button.Group style={{ justifyContent: 'center' }}>
<Button
renderAs="button"
style={{ marginRight: 20 }}
onClick={() => onDownload(objectData.objectId, objectData.filename)}
>
<span>Download</span>
<FontAwesomeIcon icon={['fas', 'download']} style={{ marginLeft: 5, fontSize: 14 }} />
</Button>
<Button
renderAs="button"
onClick={() => {
copy(`${environment.server ? environment.server : document.location.origin}/gate/get/${objectData.objectId}`);
setCopied(true);
Expand Down