Skip to content

Commit f75f935

Browse files
committed
2 parents 7888755 + 173a5bd commit f75f935

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

configs/vite-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default defineConfig(({ mode }) => {
6262
antd: ['antd'],
6363
'css-in-js': ['@emotion/react'],
6464
'react-query': ['@tanstack/react-query'],
65-
router: ['react-router-dom']
65+
router: ['react-router']
6666
}
6767
}
6868
}

frontend/components/SupportPage/SupportPage.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { __ } from '@common/helpers/i18nwrap'
12
import { Col, Row, theme, Typography } from 'antd'
23
import { type ReactNode } from 'react'
34

4-
import isPro from '../../utils/isPro'
55
import FacebookCommunityCard from '../FacebookCommunityCard'
66
import License from '../License.pro'
77
import pluginInfoData from './data/pluginInfoData'
@@ -34,11 +34,13 @@ export default function SupportPage({
3434
<Row gutter={20}>
3535
<Col md={15} sm={24}>
3636
<div className="mb-12">
37-
<Title level={5}>About {aboutPlugin.title}</Title>
37+
<Title level={5}>
38+
{__('About')} {aboutPlugin.title}
39+
</Title>
3840
<Paragraph style={{ color: token.colorTextSecondary }}>{aboutPlugin.description}</Paragraph>
3941
</div>
4042

41-
{isPro() && <License pluginSlug={pluginSlug} />}
43+
<License pluginSlug={pluginSlug} />
4244

4345
<Improvement />
4446

frontend/utils/themeUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function isConflictingCSS(cssUrl: string) {
3838
* @returns boolean indicating if the css file is from the plugin
3939
*/
4040
function isPluginCss(cssUrl: string) {
41-
return cssUrl.replaceAll(window.location.host, '').includes(SERVER_VARIABLES.slug)
41+
return cssUrl.replaceAll(window.location.host, '').includes(`${SERVER_VARIABLES.pluginSlug}-ba-assets`)
4242
}
4343

4444
/**

0 commit comments

Comments
 (0)