This commit is contained in:
Vivian Phung 2024-02-26 22:30:51 -05:00
parent 7557511dd5
commit 528cd3b773
No known key found for this signature in database

View File

@ -1,8 +1,9 @@
import React from 'react'; import React from 'react';
import toast from 'react-hot-toast'; import toast from 'react-hot-toast';
import { Link } from 'react-router-dom';
import { ReactNativeIcon, ChevronRight } from 'components/shared/CustomIcon'; import { IconButton, Typography } from '@material-tailwind/react';
import { Link } from 'react-router-dom';
interface TemplateDetails { interface TemplateDetails {
id: string; id: string;
@ -16,15 +17,18 @@ interface TemplateCardProps {
const CardDetails = ({ template }: { template: TemplateDetails }) => { const CardDetails = ({ template }: { template: TemplateDetails }) => {
return ( return (
<div className="bg-gray-200 border-gray-200 border-b border-opacity-10 rounded-lg shadow flex items-center justify-between"> <div className="h-14 group bg-gray-200 border-gray-200 rounded-lg shadow p-4 flex items-center justify-between">
<ReactNativeIcon /> <Typography className="grow" placeholder={''}>
<div className="grow shrink basis-0 text-slate-900 text-sm font-normal leading-tight"> {template.icon} {template.name}
{template.name} </Typography>
</div>
<div> <div>
<div className="py-2 px-3 bg-white rounded-full shadow-inner border border-sky-950 border-opacity-10 justify-center items-center gap-1 flex"> <IconButton
<ChevronRight /> size="sm"
</div> className="rounded-full hidden group-hover:block"
placeholder={''}
>
{'>'}
</IconButton>
</div> </div>
</div> </div>
); );