Link am Betrieb hinzugefügt
This commit is contained in:
@@ -201,11 +201,26 @@ const DashboardView = ({
|
||||
</div>
|
||||
),
|
||||
cell: ({ row }) => (
|
||||
<div className="flex items-start justify-between gap-3">
|
||||
<div>
|
||||
<span className="font-medium">{row.original.label}</span>
|
||||
{row.original.hidden && <span className="ml-2 text-xs text-gray-400">(ausgeblendet)</span>}
|
||||
<p className="text-xs text-gray-500">#{row.original.id}</p>
|
||||
</div>
|
||||
<a
|
||||
href={`https://foodsharing.de/store/${row.original.id}`}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="text-gray-400 hover:text-blue-600"
|
||||
title="Store öffnen"
|
||||
>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" className="h-4 w-4" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M12.293 2.293a1 1 0 011.414 0L18 6.586V7a1 1 0 01-1 1h-.586l-3.707-3.707a1 1 0 010-1.414z" />
|
||||
<path d="M3 5a2 2 0 012-2h5a1 1 0 010 2H5v10h10v-5a1 1 0 112 0v5a2 2 0 01-2 2H5a2 2 0 01-2-2V5z" />
|
||||
<path d="M11 3a1 1 0 100 2h2v2a1 1 0 102 0V4a1 1 0 00-1-1h-3z" />
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
),
|
||||
sortingFn: 'alphanumeric',
|
||||
filterFn: 'includesString'
|
||||
|
||||
Reference in New Issue
Block a user