Skip to content

Commit

Permalink
refactor: rename FramelessLogo to LogoWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
TessaViergever committed May 31, 2024
1 parent a2533f7 commit 8b206a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { HTMLAttributes } from 'react';
// Include CSS for logo as a package deal. FIXME: move this to a separate `css-module` option like Utrecht
import '@frameless/components-css/logo/index.scss';

export type FramelessLogoProps = HTMLAttributes<HTMLDivElement>;
export const FramelessLogo = ({ className, children, ...restProps }: FramelessLogoProps) => (
<div {...restProps} className={clsx('frameless-logo', className)}>
export type LogoWrapperProps = HTMLAttributes<HTMLDivElement>;
export const LogoWrapper = ({ className, children, ...restProps }: LogoWrapperProps) => (
<div {...restProps} className={clsx('frameless-logo__wrapper', className)}>
{children}
</div>
);
9 changes: 5 additions & 4 deletions packages/components-react/src/Logo/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
// Logo component is imported from Utrecht, LogoImage and LogoText are Frameless components
// Logo component is imported from Utrecht
// LogoImage, LogoText and LogoWrapper are Frameless components

import { Logo as UtrechtLogo } from '@utrecht/component-library-react';
import { FramelessLogo } from './FramelessLogo';
import { LogoImage } from './LogoImage';
import { LogoText } from './LogoText';
import { LogoWrapper } from './LogoWrapper';

export const Logo = () => (
<FramelessLogo className="frameless-logo">
<LogoWrapper className="frameless-logo__wrapper">
<UtrechtLogo>
<LogoImage />
</UtrechtLogo>
<LogoText>Frameless</LogoText>
</FramelessLogo>
</LogoWrapper>
);

0 comments on commit 8b206a4

Please sign in to comment.