Skip to content

Instantly share code, notes, and snippets.

@kaineer
Last active October 22, 2024 10:24
Show Gist options
  • Save kaineer/26adbccbb6b5e02dc4fe5ae6bfbe64eb to your computer and use it in GitHub Desktop.
Save kaineer/26adbccbb6b5e02dc4fe5ae6bfbe64eb to your computer and use it in GitHub Desktop.
{
"classes": {
"listItem": "py-3 sm:py-4 w-100",
"container": "flex items-center space-x-4 cursor-pointer",
"wrapper": "min-w-0 flex-1",
"userName": "truncate text-sm font-medium text-gray-900",
"iconContainer": "inline-flex items-center text-base font-semibold text-gray-900"
}
}
return (
<li className={classes.listItem}>
<div className={classes.container}>
<div className={classes.wrapper}>
<p
className={classes.userName}>
{waitingForName ? <Spinner /> : data.userName}
</p>
</div>
<div
onClick={() => request({
...mentorsGroup,
mentorsId,
})}
className={classes.iconContainer}
>
<Icon.Close />
</div>
</div>
</li>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment