Skip to content

Commit

Permalink
feat: Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun committed Apr 7, 2024
1 parent 6232e96 commit b6c6e7f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
16 changes: 0 additions & 16 deletions packages/examples/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,12 @@ declare module '*.jpeg' {
export default content;
}

declare module '*.module.css' {
const content: {
readonly [name: string]: string;
};

export default content;
}

declare module '*.css' {
const content: string;

export default content;
}

declare module '*.module.scss' {
const content: {
readonly [name: string]: string;
};

export default content;
}

declare module '*.scss' {
const content: string;

Expand Down
2 changes: 1 addition & 1 deletion packages/examples/src/js/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

import '/css/global.scss';
import styles from '/css/App.module.scss';
import * as styles from '/css/App.module.scss';

import React, { lazy, memo, Suspense, useCallback, useMemo } from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/examples/src/js/pages/Decode.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styles from '/css/Decode.module.scss';
import * as styles from '/css/Decode.module.scss';

import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/examples/src/js/pages/Encode.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styles from '/css/Encode.module.scss';
import * as styles from '/css/Encode.module.scss';

import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';

Expand Down

0 comments on commit b6c6e7f

Please sign in to comment.