cleaning up
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useGetStickies, useClusterStickies } from '../api/api';
|
||||
import type { Sticky as StickyType } from '../types/types';
|
||||
import Sticky from './sticky';
|
||||
import ClusterButton from './button';
|
||||
import Button from './button';
|
||||
import './stickies.css';
|
||||
|
||||
const Stickies = () => {
|
||||
@@ -26,7 +26,7 @@ const Stickies = () => {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<ClusterButton onClick={handleCluster} isLoading={isPending} />
|
||||
<Button onClick={handleCluster} isLoading={isPending} label={'Group by Theme'}/>
|
||||
<div className="clusters-container">
|
||||
{clusters.map((group) => (
|
||||
<div key={group.label} className="cluster-group">
|
||||
@@ -46,7 +46,7 @@ const Stickies = () => {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<ClusterButton onClick={handleCluster} isLoading={isPending} />
|
||||
<Button onClick={handleCluster} isLoading={isPending} />
|
||||
<div className="stickies-grid">
|
||||
{stickies?.map((sticky) => (
|
||||
<Sticky key={sticky.id} sticky={sticky} />
|
||||
|
||||
Reference in New Issue
Block a user