Skip to content

Commit

Permalink
Merge branch 'next' into apple-music
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvdkolk committed Feb 23, 2024
2 parents ed66450 + a40ecae commit d40c649
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/settings/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const NavBody: FC = () => (
</NavGroup>

<NavGroup title="Stats">
<SideNavItem href="/settings/imports">Import</SideNavItem>
<SideNavItem href="/settings/imports">Imports</SideNavItem>
</NavGroup>
</aside>
</nav>
Expand Down
28 changes: 15 additions & 13 deletions src/pages/settings/imports.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { BlobReader, TextWriter, ZipReader } from '@zip.js/zip.js';
import { Button } from '@/components/Button';
import { Platform } from '@/utils/statsfm';
import { AccountLayout } from '@/components/settings/Layout';
import { SettingsHeader } from '@/components/settings/SettingsHeader';

export const getServerSideProps: GetServerSideProps<SSRProps> = async (ctx) => {
const user = await fetchUser(ctx);
Expand Down Expand Up @@ -226,6 +227,20 @@ const Imports = () => {
return (
<div className="relative w-full">
<Title>Imports</Title>
<SettingsHeader title="Imports" />

<p>
Check more about importing your lifetime streaming history{' '}
<a
className="text-primary hover:opacity-90"
href="https://support.stats.fm/docs/import"
target="blank"
onClick={() => event('IMPORT_guide_click')}
>
in the support documentation
</a>
.
</p>
{importWarning?.asBoolean() && (
<div className="my-8 w-full flex-row rounded-md border-l-4 border-l-yellow-400/80 bg-yellow-400/20 p-4">
<div className="flex w-full flex-col">
Expand All @@ -239,19 +254,6 @@ const Imports = () => {
</div>
</div>
)}
<h2>Imports</h2>
<p>
Check more about importing your lifetime streaming history{' '}
<a
className="text-primary hover:opacity-90"
href="https://support.stats.fm/docs/import"
target="blank"
onClick={() => event('IMPORT_guide_click')}
>
in the support documentation
</a>
.
</p>
{user.isPlus ? (
<>
{importAvailable?.asBoolean() ? (
Expand Down

0 comments on commit d40c649

Please sign in to comment.