mirror of
https://github.com/chartdb/chartdb.git
synced 2025-11-06 15:03:22 +00:00
some mobile & bundle optimizations (#262)
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import React from 'react';
|
||||
import { Link } from '@/components/link/link';
|
||||
import { LayoutGrid } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
export interface ExampleOptionProps {}
|
||||
|
||||
export const ExampleOption: React.FC<ExampleOptionProps> = () => {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<Link href="/examples" className="text-primary hover:text-primary">
|
||||
<div className="flex size-20 cursor-pointer flex-col items-center rounded-md border py-3 text-center md:size-32">
|
||||
<div className="flex flex-1 items-center">
|
||||
<LayoutGrid size={34} />
|
||||
</div>
|
||||
<div className="flex flex-col-reverse">
|
||||
<div className="hidden text-sm text-primary md:flex">
|
||||
{t(
|
||||
'new_diagram_dialog.database_selection.check_examples_long'
|
||||
)}
|
||||
</div>
|
||||
<div className="flex text-xs text-primary md:hidden">
|
||||
{t(
|
||||
'new_diagram_dialog.database_selection.check_examples_short'
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user