Skip to content

Commit

Permalink
refactor: delete the type and use propswithchildren
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhan-slurrp committed May 30, 2023
1 parent cf28c64 commit 2af57dc
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import React from 'react';

type TToggleContainer = {
children: React.ReactNode;
};

const ToggleContainer = ({ children }: TToggleContainer) => (
const ToggleContainer = ({ children }: React.PropsWithChildren<unknown>) => (
<div className='toggle-container' data-testid='dt_toggle_container'>
{children}
</div>
Expand Down

0 comments on commit 2af57dc

Please sign in to comment.