Add active state for Upload button

This commit is contained in:
Piotr Rogowski 2022-01-09 16:56:32 +01:00
parent a98f09e44c
commit 43255fa40f
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
<meta name="theme-color" content="#222629" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/icons/icon.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="preconnect" href="https://apis.google.com">
<link rel="preconnect" href="https://apis.google.com" crossorigin>
<meta property="og:title" content="SpeedyTuner Cloud">
<meta name="twitter:image:alt" content="SpeedyTuner Cloud">
<meta name="description" content="Share your Speeduino tune and logs" />

View File

@ -140,7 +140,7 @@ const TopBar = () => {
<Button disabled icon={<SearchOutlined />} ref={searchInput} />
</Tooltip>
<Link to={Routes.UPLOAD}>
<Button icon={<CloudUploadOutlined />}>
<Button icon={<CloudUploadOutlined />} type={matchedTabPath?.url === Routes.UPLOAD ? 'primary' : 'default' }>
{lg && 'Upload'}
</Button>
</Link>