Skip to content

Commit a40ecae

Browse files
committed
fix(settings): mobile nav bar on imports page
1 parent 54a15f9 commit a40ecae

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

src/components/settings/Nav.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const NavBody: FC = () => (
5555
</NavGroup>
5656

5757
<NavGroup title="Stats">
58-
<SideNavItem href="/settings/imports">Import</SideNavItem>
58+
<SideNavItem href="/settings/imports">Imports</SideNavItem>
5959
</NavGroup>
6060
</aside>
6161
</nav>

src/pages/settings/imports.tsx

+15-13
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { MdFileUpload, MdWarning } from 'react-icons/md';
2222
import { BlobReader, TextWriter, ZipReader } from '@zip.js/zip.js';
2323
import { Button } from '@/components/Button';
2424
import { AccountLayout } from '@/components/settings/Layout';
25+
import { SettingsHeader } from '@/components/settings/SettingsHeader';
2526

2627
export const getServerSideProps: GetServerSideProps<SSRProps> = async (ctx) => {
2728
const user = await fetchUser(ctx);
@@ -199,6 +200,20 @@ const Imports = () => {
199200
return (
200201
<div className="relative w-full">
201202
<Title>Imports</Title>
203+
<SettingsHeader title="Imports" />
204+
205+
<p>
206+
Check more about importing your lifetime streaming history{' '}
207+
<a
208+
className="text-primary hover:opacity-90"
209+
href="https://support.stats.fm/docs/import"
210+
target="blank"
211+
onClick={() => event('IMPORT_guide_click')}
212+
>
213+
in the support documentation
214+
</a>
215+
.
216+
</p>
202217
{importWarning?.asBoolean() && (
203218
<div className="my-8 w-full flex-row rounded-md border-l-4 border-l-yellow-400/80 bg-yellow-400/20 p-4">
204219
<div className="flex w-full flex-col">
@@ -212,19 +227,6 @@ const Imports = () => {
212227
</div>
213228
</div>
214229
)}
215-
<h2>Imports</h2>
216-
<p>
217-
Check more about importing your lifetime streaming history{' '}
218-
<a
219-
className="text-primary hover:opacity-90"
220-
href="https://support.stats.fm/docs/import"
221-
target="blank"
222-
onClick={() => event('IMPORT_guide_click')}
223-
>
224-
in the support documentation
225-
</a>
226-
.
227-
</p>
228230
{user.isPlus ? (
229231
<>
230232
{importAvailable?.asBoolean() ? (

0 commit comments

Comments
 (0)