-
+ }
+ value={name}
+ onChange={handleNameChange}
+ maxLength={40}
+ />
+
+
+ }
+ hint={
+
+ }
+ value={description}
+ onChange={handleDescriptionChange}
+ maxLength={100}
+ />
+
+
+ }
+ hint={
+
+ }
+ value={topic}
+ onChange={handleTopicChange}
+ maxLength={40}
+ />
+
+
+ }
+ >
+
+ }
+ hint={
+
+ }
+ value='public'
+ checked={discoverable}
+ onChange={handleDiscoverableChange}
+ />
+
+ }
+ hint={
+
+ }
+ value='unlisted'
+ checked={!discoverable}
+ onChange={handleDiscoverableChange}
+ />
+
+
+
+ }
+ >
+
+ }
+ hint={
+
+ }
+ checked={sensitive}
+ onChange={handleSensitiveChange}
+ />
+
+
+
+
+
+
+
-
+
);
};
diff --git a/app/javascript/flavours/glitch/features/collections/editor/index.tsx b/app/javascript/flavours/glitch/features/collections/editor/index.tsx
index 7cb9fab9ef..5691ef10f7 100644
--- a/app/javascript/flavours/glitch/features/collections/editor/index.tsx
+++ b/app/javascript/flavours/glitch/features/collections/editor/index.tsx
@@ -21,7 +21,6 @@ import { useAppDispatch, useAppSelector } from 'flavours/glitch/store';
import { CollectionAccounts } from './accounts';
import { CollectionDetails } from './details';
-import { CollectionSettings } from './settings';
export const messages = defineMessages({
create: {
@@ -34,20 +33,12 @@ export const messages = defineMessages({
},
editDetails: {
id: 'collections.edit_details',
- defaultMessage: 'Edit basic details',
+ defaultMessage: 'Edit details',
},
manageAccounts: {
id: 'collections.manage_accounts',
defaultMessage: 'Manage accounts',
},
- manageAccountsLong: {
- id: 'collections.manage_accounts_in_collection',
- defaultMessage: 'Manage accounts in this collection',
- },
- editSettings: {
- id: 'collections.edit_settings',
- defaultMessage: 'Edit settings',
- },
});
function usePageTitle(id: string | undefined) {
@@ -62,8 +53,6 @@ function usePageTitle(id: string | undefined) {
return messages.manageAccounts;
} else if (matchPath(location.pathname, { path: `${path}/details` })) {
return messages.editDetails;
- } else if (matchPath(location.pathname, { path: `${path}/settings` })) {
- return messages.editSettings;
} else {
throw new Error('No page title defined for route');
}
@@ -117,11 +106,6 @@ export const CollectionEditorPage: React.FC<{
// eslint-disable-next-line react/jsx-no-bind
render={() =>
}
/>
-
}
- />
)}
diff --git a/app/javascript/flavours/glitch/features/collections/editor/settings.tsx b/app/javascript/flavours/glitch/features/collections/editor/settings.tsx
deleted file mode 100644
index 30dd287ec1..0000000000
--- a/app/javascript/flavours/glitch/features/collections/editor/settings.tsx
+++ /dev/null
@@ -1,199 +0,0 @@
-import { useCallback, useState } from 'react';
-
-import { FormattedMessage } from 'react-intl';
-
-import { useHistory, useLocation } from 'react-router-dom';
-
-import { isFulfilled } from '@reduxjs/toolkit';
-
-import type {
- ApiCollectionJSON,
- ApiCreateCollectionPayload,
- ApiUpdateCollectionPayload,
-} from 'flavours/glitch/api_types/collections';
-import { Button } from 'flavours/glitch/components/button';
-import {
- Fieldset,
- FormStack,
- CheckboxField,
- RadioButtonField,
-} from 'flavours/glitch/components/form_fields';
-import {
- createCollection,
- updateCollection,
-} from 'flavours/glitch/reducers/slices/collections';
-import { useAppDispatch } from 'flavours/glitch/store';
-
-import type { TempCollectionState } from './state';
-import { getCollectionEditorState } from './state';
-import classes from './styles.module.scss';
-import { WizardStepHeader } from './wizard_step_header';
-
-export const CollectionSettings: React.FC<{
- collection?: ApiCollectionJSON | null;
-}> = ({ collection }) => {
- const dispatch = useAppDispatch();
- const history = useHistory();
- const location = useLocation