Skip to content

Commit

Permalink
fix: pc check (#3447)
Browse files Browse the repository at this point in the history
* fix: pc check

* fix: pc check
  • Loading branch information
c121914yu authored Dec 21, 2024
1 parent e5b8dea commit ae14906
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/web/common/system/nextjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const serviceSideProps = async (content: any, ns: I18nNsType = []) => {
const extraLng = content.req?.cookies?.NEXT_LOCALE ? undefined : content.locales;

// Device size
const deviceSize = content.req?.cookies?.NEXT_DEVICE_SIZE || 'pc';
const deviceSize = content.req?.cookies?.NEXT_DEVICE_SIZE || null;

return {
...(await serverSideTranslations(lang, ['common', ...ns], null, extraLng)),
Expand Down
2 changes: 1 addition & 1 deletion packages/web/context/useSystem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const SystemStoreContextProvider = ({
device
}: {
children: ReactNode;
device?: 'pc' | 'mobile';
device?: 'pc' | 'mobile' | null;
}) => {
const [isPc] = useMediaQuery('(min-width: 900px)');

Expand Down

0 comments on commit ae14906

Please sign in to comment.