Skip to content

Commit

Permalink
fix: 修复 useStyles 可能引发的异常 (#293)
Browse files Browse the repository at this point in the history
* fix: 修复 useStyles 可能引发的异常

* fix: 修复 useStyles 可能引发的异常

---------

Co-authored-by: LengYXin <[email protected]>
  • Loading branch information
LengYXin and LengYXin authored Aug 2, 2024
1 parent 9843405 commit 9a29e1a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ActionIcon/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const useStyles = createStyles(
({ css, stylish, cx }, { glass }: { active: boolean; glass: boolean }) => {
return {
block: cx(
glass && stylish.blur,
glass && stylish?.blur,
css`
cursor: pointer;
Expand Down
2 changes: 1 addition & 1 deletion src/BackBottom/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createStyles } from 'antd-style';

export const useStyles = createStyles(({ token, css, stylish, cx }, visible: boolean) =>
cx(
stylish.blur,
stylish?.blur,
css`
pointer-events: ${visible ? 'all' : 'none'};
Expand Down
4 changes: 2 additions & 2 deletions src/ProChat/container/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const useStyles = createStyles(
({ css, responsive, stylish }) => css`
overflow: hidden scroll;
height: 100%;
${responsive.mobile} {
${stylish.noScrollbar}
${responsive?.mobile} {
${stylish?.noScrollbar}
width: 100%;
}
`,
Expand Down

0 comments on commit 9a29e1a

Please sign in to comment.