diff --git a/src/app/user/page.tsx b/src/app/user/page.tsx index 8e6712f..f25ca07 100644 --- a/src/app/user/page.tsx +++ b/src/app/user/page.tsx @@ -4,7 +4,7 @@ import { PersonBio, PersonHeader } from '@/components/person-detail'; import * as testData from '../../../test-person-data.json'; import MainCard from '@/components/main-card'; -import { ModeratesList } from '@/components/moderates-list'; +import { ModeratesList, ModeratesProps } from '@/components/moderates-list'; import { PersonDetailSelection } from '@/components/person-comments-posts'; const User = () => ( @@ -17,7 +17,7 @@ const User = () => (
- +
diff --git a/src/components/moderates-list/index.tsx b/src/components/moderates-list/index.tsx index d166dbd..5a1c29e 100644 --- a/src/components/moderates-list/index.tsx +++ b/src/components/moderates-list/index.tsx @@ -4,7 +4,13 @@ import Image from 'next/image'; import Link from 'next/link'; import { H1 } from '../text'; -export const ModeratesListItem = ({ communityName, communityAvatar, url }: { communityName: string, communityAvatar: string | undefined, url: string }) => ( +interface ModeratesListItemProps { + communityName: string; + communityAvatar: string | undefined; + url: string; +} + +export const ModeratesListItem = ({ communityName, communityAvatar, url }: ModeratesListItemProps) => ( {communityAvatar && ) -export const ModeratesList = ({ moderates }: { moderates: { community: { title: string, actor_id: string, icon: string, } }[] }) => ( +export interface ModeratesProps { + community: { + title: string, + actor_id: string, + icon?: string, + } + +} + +export const ModeratesList = ({ moderates }: {moderates: ModeratesProps[]}) => (

Moderates:

diff --git a/tailwind.config.ts b/tailwind.config.ts index 20de36d..abde4d8 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,5 +1,4 @@ import type { Config } from 'tailwindcss'; -import withMT from '@material-tailwind/react/utils/withMT'; const spacing = { 0: '0', @@ -37,8 +36,8 @@ const config: Config = { content: [ './src/components/**/*.{js,ts,jsx,tsx,mdx}', './src/app/**/*.{js,ts,jsx,tsx,mdx}', - "path-to-your-node_modules/@material-tailwind/react/components/**/*.{js,ts,jsx,tsx}", - "path-to-your-node_modules/@material-tailwind/react/theme/components/**/*.{js,ts,jsx,tsx}", + 'node_modules/@material-tailwind/react/components/**/*.{js,ts,jsx,tsx}', + 'node_modules/@material-tailwind/react/theme/components/**/*.{js,ts,jsx,tsx}', ], theme: { spacing, @@ -50,6 +49,14 @@ const config: Config = { ...spacing, full: '100%' }, + minHeight: { + ...spacing, + full: '100%' + }, + minWidth: { + ...spacing, + full: '100%' + }, extend: { colors: { brand: { @@ -75,4 +82,4 @@ const config: Config = { plugins: [] }; -export default withMT(config); +export default config;