Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Spiral-Memory committed Aug 26, 2024
1 parent c06cca2 commit 1e48807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/layout_editor/src/views/GlobalStyles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { css, Global } from '@emotion/react';
import { useTheme, alpha } from '@embeddedchat/ui-elements';

const useStyles = ({ theme }) => css`
const getGlobalStyles = ({ theme }) => css`
* {
box-sizing: border-box;
margin: 0;
Expand Down Expand Up @@ -39,7 +39,7 @@ const useStyles = ({ theme }) => css`
`;

const GlobalStyles = () => {
const styles = useStyles(useTheme());
const styles = getGlobalStyles(useTheme());

return <Global styles={styles} />;
};
Expand Down

0 comments on commit 1e48807

Please sign in to comment.