Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nwang03 committed Nov 1, 2023
2 parents c240755 + 7e79e88 commit 3b87081
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ import { Button } from 'reactstrap';
/** --------Optional props--------
* any props you would apply to a reactstrap Button.
*/
const ViewportAwareButton = function (props) {

interface ViewportAwareButtonProps{
icon: React.JSX.Element,
text: string,
isSmall: boolean,
remainder: any,
};

const ViewportAwareButton = function (props : ViewportAwareButtonProps) {
// extract icon and text from props.
const {
icon, text, isSmall, ...remainder
Expand Down

0 comments on commit 3b87081

Please sign in to comment.