Skip to content

Commit

Permalink
can accept className in Fins
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee authored and Lee committed Jul 16, 2023
1 parent 49c637e commit d362919
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@actav/floating-icon-navigation",
"version": "1.0.6",
"version": "1.0.7",
"description": "",
"scripts": {
"build": "yarn build:esm && yarn build:cjs",
Expand Down
5 changes: 3 additions & 2 deletions src/components/Fins/Fins.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const Indicator = styled.div`
`;

export interface FinsProps {
className?: string;
children: React.ReactNode;
}

Expand All @@ -67,7 +68,7 @@ export interface FinsProps {
*/
function Fins(props: FinsProps) {
// prop destruction
const { children } = props;
const { className, children } = props;

// lib hooks
const { nextPath, indicatorX } = useFin();
Expand Down Expand Up @@ -140,7 +141,7 @@ function Fins(props: FinsProps) {
// handlers

return (
<FinsContainer ref={containerRef}>
<FinsContainer className={className} ref={containerRef}>
<FinsWrapper>
<IndicatorContainer>
<Indicator ref={scope} className='indicator' />
Expand Down

0 comments on commit d362919

Please sign in to comment.