Skip to content
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
10 changes: 5 additions & 5 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { withSentryConfig } from '@sentry/nextjs';

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
experimental: { forceSwcTransforms: true },
output: 'standalone',

hideSourceMaps: true,
productionBrowserSourceMaps: false,
webpack: (config, options) => {
config.module.rules.push({
test: /\.svg$/i,
use: [
options.defaultLoaders.babel,
{ loader: '@svgr/webpack', options: { babel: false } },
],
use: [options.defaultLoaders.babel, { loader: '@svgr/webpack', options: { babel: false } }],
});

return config;
},

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@next/third-parties": "^15.1.7",
"@sentry/core": "^8.47.0",
"@sentry/nextjs": "^8.47.0",
"@sentry/webpack-plugin": "^3.3.1",
"@tailwindcss/typography": "^0.5.16",
"@tanstack/react-query": "^5.69.0",
"@tanstack/react-query-devtools": "^5.69.0",
Expand Down
129 changes: 129 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/apis/instance.request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const instance = async <I, R>(
signal: AbortSignal.timeout
? AbortSignal.timeout(Number(env.ABORT_MS))
: abortPolyfill(Number(env.ABORT_MS)),
credentials: input !== '/login' ? 'include' : 'omit',
credentials: 'include',
cache: 'no-store',
});

Expand Down
8 changes: 0 additions & 8 deletions src/app/(auth-required)/compare/page.tsx

This file was deleted.

23 changes: 7 additions & 16 deletions src/app/(auth-required)/components/header/Section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ import { COLORS } from '@/constants';
import { useCustomNavigation } from '@/hooks';

export const defaultStyle =
'w-[180px] h-[65px] px-9 transition-all duration-300 shrink-0 max-MBI:w-[65px] max-MBI:px-0 ';
export const navigateStyle =
'gap-5 flex items-center justify-center cursor-pointer ';
export const textStyle =
'text-ST4 shrink-0 transition-all duration-300 max-MBI:hidden ';
'w-[180px] h-[65px] px-9 transition-all duration-300 shrink-0 max-MBI:w-[65px] max-MBI:px-0';
export const navigateStyle = 'gap-5 flex items-center justify-center cursor-pointer';
export const textStyle = 'text-ST4 shrink-0 transition-all duration-300 max-MBI:hidden';

type clickType = 'link' | 'function' | 'none';
type BaseType = { icon: NameType };
Expand Down Expand Up @@ -44,23 +42,16 @@ export const Section = <T extends clickType>({

if (clickType === 'link') {
return (
<div
onClick={() => push(action)}
className={defaultStyle + navigateStyle}
>
<div onClick={() => push(action)} className={`${defaultStyle} ${navigateStyle}`}>
<Icon
size={25}
color={
COLORS.TEXT[
typeof action === 'string' && action.includes(currentPath)
? 'MAIN'
: 'ALT'
]
COLORS.TEXT[typeof action === 'string' && action.includes(currentPath) ? 'MAIN' : 'ALT']
}
name={icon}
/>
<span
className={`${action.split('?')[0] === currentPath ? 'text-TEXT-MAIN' : 'text-TEXT-ALT'} ${textStyle}`}
className={`${textStyle} ${action.split('?')[0] === currentPath ? 'text-TEXT-MAIN' : 'text-TEXT-ALT'}`}
>
{children}
</span>
Expand All @@ -71,7 +62,7 @@ export const Section = <T extends clickType>({
return (
<div
onClick={action}
className={`${defaultStyle + navigateStyle} TBL:min-w-[180px] rounded-t-[4px] w-[fit-content_!important] max-MBI:w-[65px_!important]`}
className={`${defaultStyle} ${navigateStyle} TBL:min-w-[180px] rounded-t-[4px] w-[fit-content_!important] max-MBI:w-[65px_!important]`}
>
{children}
</div>
Expand Down
Loading