Skip to content

Commit 4558d2f

Browse files
committed
feat: trial information
1 parent f516462 commit 4558d2f

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

apps/frontend/src/components/billing/faq.component.tsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,28 @@ import { FC, useCallback, useState } from 'react';
44
import clsx from 'clsx';
55
import interClass from '@gitroom/react/helpers/inter.font';
66
import { useVariables } from '@gitroom/react/helpers/variable.context';
7+
import { useUser } from '@gitroom/frontend/components/layout/user.context';
78

89
const useFaqList = () => {
9-
const {isGeneral} = useVariables();
10+
const { isGeneral } = useVariables();
11+
const user = useUser();
1012
return [
13+
...(user?.allowTrial
14+
? [
15+
{
16+
title: 'Am I going to be charged by Postiz?',
17+
description:
18+
'To confirm credit card information Postiz will hold $2 and release it immediately',
19+
},
20+
]
21+
: []),
1122
{
1223
title: `Can I trust ${isGeneral ? 'Postiz' : 'Gitroom'}?`,
13-
description: `${isGeneral ? 'Postiz' : 'Gitroom'} is proudly open-source! We believe in an ethical and transparent culture, meaning that ${isGeneral ? 'Postiz' : 'Gitroom'} will live forever. You can check out the entire code or use it for personal projects. To view the open-source repository, <a href="https://github.com/gitroomhq/postiz-app" target="_blank" style="text-decoration: underline;">click here</a>.`,
24+
description: `${
25+
isGeneral ? 'Postiz' : 'Gitroom'
26+
} is proudly open-source! We believe in an ethical and transparent culture, meaning that ${
27+
isGeneral ? 'Postiz' : 'Gitroom'
28+
} will live forever. You can check out the entire code or use it for personal projects. To view the open-source repository, <a href="https://github.com/gitroomhq/postiz-app" target="_blank" style="text-decoration: underline;">click here</a>.`,
1429
},
1530
{
1631
title: 'What are channels?',
@@ -29,7 +44,7 @@ For example, you can schedule your posts on X, Facebook, Instagram, TikTok, YouT
2944
description: `We automate ChatGPT to help you write your social posts and articles`,
3045
},
3146
];
32-
}
47+
};
3348

3449
export const FAQSection: FC<{ title: string; description: string }> = (
3550
props

0 commit comments

Comments
 (0)