mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 07:09:07 +03:00
* Add lucide-react to docs (to make the autocomplete work). * Migrate the docs app icons. * Migrate the ui-patterns. * Remove the old icons from ui package. * Migrate the www app from react-feather icons. * Migrate all of studio icons. * Migrate the only component in design-system. * Fix an old import in ui package. Revert an import in docs app. * Fix some pages in www. * Remove unneeded files used in generation of icons. * Fix a prettier error. * Fix more issues in www. * Fix an issue in Log Date picker. * Replace all string sizes with number sizes because the icons grew in some cases. * Fix more imports in security page. * Fix an extra import. * Remove the size prop from all icons if they're in a button and they match the button size. * Minor fixes for docs and www. --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import Table from 'components/to-be-cleaned/Table'
|
|
import type { AuthorizedApp } from 'data/oauth/authorized-apps-query'
|
|
import dayjs from 'dayjs'
|
|
import { Trash } from 'lucide-react'
|
|
import { Button } from 'ui'
|
|
|
|
export interface AuthorizedAppRowProps {
|
|
app: AuthorizedApp
|
|
onSelectRevoke: () => void
|
|
}
|
|
|
|
const AuthorizedAppRow = ({ app, onSelectRevoke }: AuthorizedAppRowProps) => {
|
|
return (
|
|
<Table.tr>
|
|
<Table.td>
|
|
<div
|
|
className="w-[30px] h-[30px] rounded-full bg-no-repeat bg-cover bg-center border border-control flex items-center justify-center"
|
|
style={{ backgroundImage: app.icon ? `url('${app.icon}')` : 'none' }}
|
|
>
|
|
{!!app.icon ? '' : `${app.name[0]}`}
|
|
</div>
|
|
</Table.td>
|
|
<Table.td>{app.name}</Table.td>
|
|
<Table.td>{dayjs(app.authorized_at).format('DD/MM/YYYY, HH:mm:ss')}</Table.td>
|
|
<Table.td align="right">
|
|
<Button type="default" icon={<Trash />} className="px-1" onClick={() => onSelectRevoke()} />
|
|
</Table.td>
|
|
</Table.tr>
|
|
)
|
|
}
|
|
|
|
export default AuthorizedAppRow
|