Skip to content

Commit d40c649

Browse files
committed
Merge branch 'next' into apple-music
2 parents ed66450 + a40ecae commit d40c649

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
@@ -23,6 +23,7 @@ import { BlobReader, TextWriter, ZipReader } from '@zip.js/zip.js';
2323
import { Button } from '@/components/Button';
2424
import { Platform } from '@/utils/statsfm';
2525
import { AccountLayout } from '@/components/settings/Layout';
26+
import { SettingsHeader } from '@/components/settings/SettingsHeader';
2627

2728
export const getServerSideProps: GetServerSideProps<SSRProps> = async (ctx) => {
2829
const user = await fetchUser(ctx);
@@ -226,6 +227,20 @@ const Imports = () => {
226227
return (
227228
<div className="relative w-full">
228229
<Title>Imports</Title>
230+
<SettingsHeader title="Imports" />
231+
232+
<p>
233+
Check more about importing your lifetime streaming history{' '}
234+
<a
235+
className="text-primary hover:opacity-90"
236+
href="https://support.stats.fm/docs/import"
237+
target="blank"
238+
onClick={() => event('IMPORT_guide_click')}
239+
>
240+
in the support documentation
241+
</a>
242+
.
243+
</p>
229244
{importWarning?.asBoolean() && (
230245
<div className="my-8 w-full flex-row rounded-md border-l-4 border-l-yellow-400/80 bg-yellow-400/20 p-4">
231246
<div className="flex w-full flex-col">
@@ -239,19 +254,6 @@ const Imports = () => {
239254
</div>
240255
</div>
241256
)}
242-
<h2>Imports</h2>
243-
<p>
244-
Check more about importing your lifetime streaming history{' '}
245-
<a
246-
className="text-primary hover:opacity-90"
247-
href="https://support.stats.fm/docs/import"
248-
target="blank"
249-
onClick={() => event('IMPORT_guide_click')}
250-
>
251-
in the support documentation
252-
</a>
253-
.
254-
</p>
255257
{user.isPlus ? (
256258
<>
257259
{importAvailable?.asBoolean() ? (

0 commit comments

Comments
 (0)