diff --git a/packages/comty/src/pages/settings/components/about.js b/packages/comty/src/pages/settings/components/about.js deleted file mode 100644 index 1cc5f45c..00000000 --- a/packages/comty/src/pages/settings/components/about.js +++ /dev/null @@ -1,31 +0,0 @@ -import React from 'react' -import { About } from 'components' -import * as Icons from 'components/Icons' -import * as antd from 'antd' -import l from 'schemas/links' - -export default class AppAbout extends React.Component { - render() { - const handleClickLinks = (e) => { - const link = l[e] - link? window.openLink(link) : console.log("Link not available") - } - return <> - - -
-

🎉✨ It's completely free and open source !

-
It is an impressive amount of work and effort, help us to continue offering quality services, you can support us from our patreon campaign.
- handleClickLinks("patreon")}> Support us with Patreon! -
- -
-

👨‍💻 You are developer? You can help us by joining our team!

- handleClickLinks("github")}>Official Repository
- handleClickLinks("trello")}>Join our Trello -
-
- - } -} - diff --git a/packages/comty/src/pages/settings/components/about/index.js b/packages/comty/src/pages/settings/components/about/index.js new file mode 100644 index 00000000..cb09617b --- /dev/null +++ b/packages/comty/src/pages/settings/components/about/index.js @@ -0,0 +1,30 @@ +import React from 'react' +import { About } from 'components' +import * as Icons from 'components/Icons' +import * as antd from 'antd' +import l from 'schemas/links' + +export default class AppAbout extends React.Component { + render() { + const handleClickLinks = (e) => { + const link = l[e] + link ? window.openLink(link) : console.log("Link not available") + } + return <> + + +
+

🎉✨ It's completely free and open source !

+
It is an impressive amount of work and effort, help us to continue offering quality services, you can support us from our patreon campaign.
+ handleClickLinks("patreon")}> Support us with Patreon! +
+ +
+

👨‍💻 You are developer? You can help us by joining our team!

+ handleClickLinks("github")}>Official Repository
+ handleClickLinks("trello")}>Join our Trello +
+
+ + } +} \ No newline at end of file diff --git a/packages/comty/src/pages/settings/components/base.js b/packages/comty/src/pages/settings/components/general/index.js similarity index 98% rename from packages/comty/src/pages/settings/components/base.js rename to packages/comty/src/pages/settings/components/general/index.js index 3ac4ac9b..02ea9460 100644 --- a/packages/comty/src/pages/settings/components/base.js +++ b/packages/comty/src/pages/settings/components/general/index.js @@ -9,7 +9,7 @@ import SettingList from 'schemas/settings.json' import {connect} from 'umi' @connect(({ app }) => ({ app })) -class Base extends Component { +export default class GeneralSettings extends Component { constructor(props) { super(props); this.state = { @@ -124,6 +124,4 @@ class Base extends Component { ) } -} - -export default Base +} \ No newline at end of file diff --git a/packages/comty/src/pages/settings/index.js b/packages/comty/src/pages/settings/index.js index c6d78b44..7e21ae50 100644 --- a/packages/comty/src/pages/settings/index.js +++ b/packages/comty/src/pages/settings/index.js @@ -3,10 +3,10 @@ import * as Icons from 'components/Icons' import { ListedMenu } from 'components' -import NotificationView from './components/notification/index.js' -import SecurityView from './components/security/index.js' -import Base from './components/base.js' -import AppAbout from './components/about.js' +import NotificationView from './components/notification' +import SecurityView from './components/security' +import Base from './components/general' +import AppAbout from './components/about' import Theme from './components/theme' import ElectronApp from './components/electron' import Keybinds from './components/keybinds'