diff --git a/package.json b/package.json index e5ce5f2f0..4971a7691 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ "cypress-iframe": "1.0.1", "env-cmd": "10.1.0", "eslint": "9.17.0", - "eslint-config-prettier": "9.1.0", + "eslint-config-prettier": "10.0.1", "eslint-import-resolver-typescript": "3.7.0", "eslint-plugin-import": "2.31.0", "eslint-plugin-jsx-a11y": "6.10.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b204fa4af..4ce77c43a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -247,8 +247,8 @@ importers: specifier: 9.17.0 version: 9.17.0(jiti@2.4.2) eslint-config-prettier: - specifier: 9.1.0 - version: 9.1.0(eslint@9.17.0(jiti@2.4.2)) + specifier: 10.0.1 + version: 10.0.1(eslint@9.17.0(jiti@2.4.2)) eslint-import-resolver-typescript: specifier: 3.7.0 version: 3.7.0(eslint-plugin-import@2.31.0)(eslint@9.17.0(jiti@2.4.2)) @@ -3444,8 +3444,8 @@ packages: resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} engines: {node: '>=12'} - eslint-config-prettier@9.1.0: - resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==} + eslint-config-prettier@10.0.1: + resolution: {integrity: sha512-lZBts941cyJyeaooiKxAtzoPHTN+GbQTJFAIdQbRhA4/8whaAraEh47Whw/ZFfrjNSnlAxqfm9i0XVAEkULjCw==} hasBin: true peerDependencies: eslint: '>=7.0.0' @@ -9892,7 +9892,7 @@ snapshots: escape-string-regexp@5.0.0: {} - eslint-config-prettier@9.1.0(eslint@9.17.0(jiti@2.4.2)): + eslint-config-prettier@10.0.1(eslint@9.17.0(jiti@2.4.2)): dependencies: eslint: 9.17.0(jiti@2.4.2) diff --git a/src/components/ui/Navigator/CurrentItemNavigation.tsx b/src/components/ui/Navigator/CurrentItemNavigation.tsx index 0e599dc03..f3ef30537 100644 --- a/src/components/ui/Navigator/CurrentItemNavigation.tsx +++ b/src/components/ui/Navigator/CurrentItemNavigation.tsx @@ -1,8 +1,9 @@ +import { Stack } from '@mui/material'; + import { DiscriminatedItem, ItemType } from '@graasp/sdk'; import { TypographyLink } from '../TypographyLink.js'; import ItemMenu, { ItemMenuProps } from './ItemMenu.js'; -import CenterAlignWrapper from './common/CenterAlignWrapper.js'; export type CurrentItemProps = { item: DiscriminatedItem; @@ -24,7 +25,7 @@ export function CurrentItemNavigation({ showArrow, }: Readonly): JSX.Element | null { return ( - + )} - + ); } diff --git a/src/components/ui/Navigator/common/CenterAlignWrapper.tsx b/src/components/ui/Navigator/common/CenterAlignWrapper.tsx deleted file mode 100644 index 96cc24ca1..000000000 --- a/src/components/ui/Navigator/common/CenterAlignWrapper.tsx +++ /dev/null @@ -1,8 +0,0 @@ -import { Box, styled } from '@mui/material'; - -const CenterAlignWrapper = styled('div')({ - display: 'flex', - alignItems: 'center', - justifyContent: 'center', -}) as typeof Box; -export default CenterAlignWrapper; diff --git a/src/components/ui/Navigator/common/constants.ts b/src/components/ui/Navigator/common/constants.ts deleted file mode 100644 index 34ee57d5b..000000000 --- a/src/components/ui/Navigator/common/constants.ts +++ /dev/null @@ -1 +0,0 @@ -export const ITEM_NAME_MAX_LENGTH = 15; diff --git a/src/modules/account/settings/publicProfile/EditPublicProfile.tsx b/src/modules/account/settings/publicProfile/EditPublicProfile.tsx index 3e3d483f8..a30de8ee6 100644 --- a/src/modules/account/settings/publicProfile/EditPublicProfile.tsx +++ b/src/modules/account/settings/publicProfile/EditPublicProfile.tsx @@ -61,7 +61,6 @@ export function EditPublicProfile({ mode: 'onChange', defaultValues: { bio: profile?.bio, - // TODO: sanitize links twitterID: profile?.twitterID, facebookID: profile?.facebookID, linkedinID: profile?.linkedinID, diff --git a/src/modules/landing/home/UserStoryButton.tsx b/src/modules/landing/home/UserStoryButton.tsx index a1d9702ef..6c01866f9 100644 --- a/src/modules/landing/home/UserStoryButton.tsx +++ b/src/modules/landing/home/UserStoryButton.tsx @@ -18,7 +18,10 @@ const StyledAnchor = styled('a')(({ theme }) => ({ padding: theme.spacing(2, 4), })); -export function UserStoryButton({ id, text }: { id: string; text: string }) { +export function UserStoryButton({ + id, + text, +}: Readonly<{ id: string; text: string }>) { return ( {text} diff --git a/src/modules/landing/support/SmallTutorialCard.tsx b/src/modules/landing/support/SmallTutorialCard.tsx index bbf179cf3..04cb81138 100644 --- a/src/modules/landing/support/SmallTutorialCard.tsx +++ b/src/modules/landing/support/SmallTutorialCard.tsx @@ -8,11 +8,11 @@ export function SmallTutorialCard({ title, description, link, -}: { +}: Readonly<{ title: string; description: string; link: string; -}) { +}>) { const { t } = useTranslation(NS.Landing, { keyPrefix: 'SUPPORT.TUTORIALS' }); return (