Cleanup unused Javascript (#3027)
* chore(js): be stricter about dead code warnings * chore(js): remove dead code and unused exports * rebase * chore: remove unused files * chore(deps): remove unused prop-types dep * chore(js): remove unused function * chore(deps): remove + check unused deps * chore(js): remove unused exports. Closes #3036
This commit is contained in:
@@ -19,7 +19,7 @@ import { FormStatusIndicator } from '../FormStatusIndicator';
|
||||
|
||||
const { Title } = Typography;
|
||||
|
||||
export const ConfigNotify = () => {
|
||||
export const BrowserNotify = () => {
|
||||
const serverStatusData = useContext(ServerStatusContext);
|
||||
const { serverConfig, setFieldInConfigState } = serverStatusData || {};
|
||||
const { notifications } = serverConfig || {};
|
||||
@@ -127,4 +127,3 @@ export const ConfigNotify = () => {
|
||||
</>
|
||||
);
|
||||
};
|
||||
export default ConfigNotify;
|
||||
|
||||
@@ -19,7 +19,7 @@ import { UpdateArgs } from '../../../types/config-section';
|
||||
|
||||
const { Title } = Typography;
|
||||
|
||||
export const ConfigNotify = () => {
|
||||
export const DiscordNotify = () => {
|
||||
const serverStatusData = useContext(ServerStatusContext);
|
||||
const { serverConfig, setFieldInConfigState } = serverStatusData || {};
|
||||
const { notifications } = serverConfig || {};
|
||||
@@ -151,4 +151,3 @@ export const ConfigNotify = () => {
|
||||
</>
|
||||
);
|
||||
};
|
||||
export default ConfigNotify;
|
||||
|
||||
@@ -5,7 +5,7 @@ import { ServerStatusContext } from '../../../utils/server-status-context';
|
||||
|
||||
const { Title } = Typography;
|
||||
|
||||
export const ConfigNotify = () => {
|
||||
export const FediverseNotify = () => {
|
||||
const serverStatusData = useContext(ServerStatusContext);
|
||||
const { serverConfig } = serverStatusData || {};
|
||||
const { federation } = serverConfig || {};
|
||||
@@ -49,4 +49,3 @@ export const ConfigNotify = () => {
|
||||
</>
|
||||
);
|
||||
};
|
||||
export default ConfigNotify;
|
||||
|
||||
Reference in New Issue
Block a user