Skip to content

Commit 391b116

Browse files
authored
Cleanup spelling issues and general formatting issues (#120)
1 parent aebbd16 commit 391b116

14 files changed

+87
-93
lines changed

src/components/Header/CreateUser.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const CreateUser: FC = () => {
1919

2020
return (
2121
<Tooltip
22-
label={'Create New User'}
22+
label={'Create new user'}
2323
sx={{ color: 'white', backgroundColor: 'black' }}
2424
withArrow
2525
onClick={handleOpen}

src/components/Navbar/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const Navbar: FC<NavbarProps> = (props) => {
106106
notifications.show({
107107
id: 'error-data',
108108
color: 'red',
109-
title: 'Error Occured',
109+
title: 'Error occurred',
110110
message: `${streamName} stream not found`,
111111
icon: <IconFileAlert size="1rem" />,
112112
autoClose: 5000,
@@ -298,7 +298,7 @@ const Navbar: FC<NavbarProps> = (props) => {
298298
onChange={(e) => {
299299
setDeleteStream(e.target.value);
300300
}}
301-
placeholder={`Type the name of the stream to confirm. i.e: ${activeStream}`}
301+
placeholder={`Type the name of the stream to confirm. i.e. ${activeStream}`}
302302
/>
303303

304304
<Box mt={10} display="flex" sx={{ justifyContent: 'end' }}>

src/components/Navbar/infoModal.tsx

+17-23
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@ import { useGetAbout } from '@/hooks/useGetAbout';
55
import { IconAlertCircle, IconBook2, IconBrandGithub, IconBrandSlack, IconBusinessplan } from '@tabler/icons-react';
66

77
const helpResources = [
8+
{
9+
icon: IconBusinessplan,
10+
title: 'Production support',
11+
description: 'Get production support',
12+
href: 'mailto:[email protected]?subject=Production%20Support%20Query', //https://www.parseable.io/pricing
13+
},
814
{
915
icon: IconBrandSlack,
1016
title: 'Slack',
11-
description: 'Connect with us',
17+
description: 'Join the Slack community',
1218
href: 'https://launchpass.com/parseable',
1319
},
1420
{
1521
icon: IconBrandGithub,
1622
title: 'GitHub',
17-
description: 'Find resources',
23+
description: 'Find resources on GitHub',
1824
href: 'https://github.com/parseablehq/parseable',
1925
},
2026
{
2127
icon: IconBook2,
2228
title: 'Documentation',
23-
description: 'Learn more',
29+
description: 'Refer the documentation',
2430
href: 'https://www.parseable.io/docs/introduction',
2531
},
26-
{
27-
icon: IconBusinessplan,
28-
title: 'Get paid support',
29-
description: 'Get paid support',
30-
href: 'mailto:[email protected]', //https://www.parseable.io/pricing
31-
},
3232
];
3333

3434
type HelpCardProps = {
@@ -72,7 +72,6 @@ const InfoModal: FC<InfoModalProps> = (props) => {
7272
const { classes } = useInfoModalStyles();
7373
const {
7474
container,
75-
parseableText,
7675
aboutTitle,
7776
aboutDescription,
7877
actionBtn,
@@ -94,12 +93,8 @@ const InfoModal: FC<InfoModalProps> = (props) => {
9493
centered>
9594
<Box className={container}>
9695

97-
<Text className={aboutTitle}>
98-
About <span className={parseableText}>Parseable</span>
99-
</Text>
100-
<Text className={aboutDescription} id="info-modal-description">
101-
Here you can find useful information about your Parseable instance.
102-
</Text>
96+
<Text className={aboutTitle}>About Parseable</Text>
97+
<Text className={aboutDescription} id="info-modal-description">Important info about your Parseable deployment</Text>
10398
{error ? (
10499
<Text className={aboutDescription}>Error...</Text>
105100
) : loading ? (
@@ -113,14 +108,13 @@ const InfoModal: FC<InfoModalProps> = (props) => {
113108
<Button
114109
variant="outline"
115110
component={'a'}
116-
href="mailto:support@parseable.io"
111+
href="mailto:sales@parseable.io?subject=Production%20Support%20Query"
117112
target="_blank"
118113
className={actionBtn}
119114
>
120-
Upgrade to commercial license
115+
Upgrade to production support
121116
</Button>
122117
</Box>
123-
124118
</Box>
125119
<Box className={aboutTextBox}>
126120
<Box className={aboutTextInnerBox}>
@@ -164,16 +158,16 @@ const InfoModal: FC<InfoModalProps> = (props) => {
164158
</Box>
165159
</>
166160
) : null}
167-
168-
169-
<Text className={aboutTitle}>Need any help?</Text>
170-
<Text className={aboutDescription}>Here you can find useful resources and information.</Text>
161+
162+
<Text className={aboutTitle}>Need help?</Text>
163+
<Text className={aboutDescription}>Ensure uninterrupted deployment</Text>
171164

172165
<Box mt={15} className={helpIconContainer}>
173166
{helpResources.map((data) => (
174167
<HelpCard key={data.title} data={data} />
175168
))}
176169
</Box>
170+
177171
</Box>
178172

179173
</Modal>

src/hooks/useDeleteLogStream.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const useDeleteLogStream = () => {
3535
id: 'delete-data',
3636
color: 'green',
3737
title: 'Stream was deleted',
38-
message: 'Successfully Deleted!!',
38+
message: 'Successfully Deleted',
3939
icon: <IconCheck size="1rem" />,
4040
autoClose: 8000,
4141
});
@@ -47,8 +47,8 @@ export const useDeleteLogStream = () => {
4747
notifications.update({
4848
id: 'delete-data',
4949
color: 'red',
50-
title: 'Error Occured',
51-
message: 'Error Occured while deleting stream',
50+
title: 'Error occurred',
51+
message: 'Error occurred while deleting stream',
5252
icon: <IconFileAlert size="1rem" />,
5353
autoClose: 2000,
5454
});
@@ -59,8 +59,8 @@ export const useDeleteLogStream = () => {
5959
notifications.update({
6060
id: 'delete-data',
6161
color: 'red',
62-
title: 'Error Occured',
63-
message: 'Error Occured while deleting stream',
62+
title: 'Error occurred',
63+
message: 'Error occurred while deleting stream',
6464
icon: <IconFileAlert size="1rem" />,
6565
autoClose: 2000,
6666
});

src/hooks/useDeleteUser.tsx

+9-9
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export const useDeleteUser = () => {
1616
id: 'load-data',
1717
loading: true,
1818
color: '#545BEB',
19-
title: 'Deleteing User',
20-
message: 'User will be Deleted.',
19+
title: 'Deleting user',
20+
message: 'User will be deleted.',
2121
autoClose: false,
2222
withCloseButton: false,
2323
});
@@ -30,8 +30,8 @@ export const useDeleteUser = () => {
3030
notifications.update({
3131
id: 'load-data',
3232
color: 'green',
33-
title: 'User was Deleted',
34-
message: 'Successfully Deleted!!',
33+
title: 'User was deleted',
34+
message: 'Successfully deleted',
3535
icon: <IconCheck size="1rem" />,
3636
autoClose: 3000,
3737
});
@@ -44,20 +44,20 @@ export const useDeleteUser = () => {
4444
notifications.update({
4545
id: 'load-data',
4646
color: 'red',
47-
title: 'Error Occured',
48-
message: 'Error Occured while Deleting User',
47+
title: 'Error occurred',
48+
message: 'Error occurred while deleting user',
4949
icon: <IconFileAlert size="1rem" />,
5050
autoClose: 2000,
5151
});
5252
}
5353
}
5454
} catch(error) {
55-
setError('Failed to get Delete User');
55+
setError('Failed to get delete user');
5656
notifications.update({
5757
id: 'load-data',
5858
color: 'red',
59-
title: 'Error Occured',
60-
message: 'Error Occured while Deleting User',
59+
title: 'Error occurred',
60+
message: 'Error occurred while deleting user',
6161
icon: <IconFileAlert size="1rem" />,
6262
autoClose: 2000,
6363
});

src/hooks/useGetLogStreamList.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const useGetLogStreamList = () => {
4343
id: 'load-data',
4444
color: 'green',
4545
title: 'Streams was loaded',
46-
message: 'Successfully Loaded!!',
46+
message: 'Successfully Loaded',
4747
icon: <IconCheck size="1rem" />,
4848
autoClose: 1000,
4949
});
@@ -66,7 +66,7 @@ export const useGetLogStreamList = () => {
6666
notifications.update({
6767
id: 'load-data',
6868
color: 'red',
69-
title: 'Error Occured',
69+
title: 'Error occurred',
7070
message: 'Unauthorized',
7171
icon: <IconFileAlert size="1rem" />,
7272
autoClose: 2000,
@@ -88,8 +88,8 @@ export const useGetLogStreamList = () => {
8888
notifications.update({
8989
id: 'load-data',
9090
color: 'red',
91-
title: 'Error Occured',
92-
message: 'Error Occured while fetching streams',
91+
title: 'Error occurred',
92+
message: 'Error occurred while fetching streams',
9393
icon: <IconFileAlert size="1rem" />,
9494
autoClose: 2000,
9595
});
@@ -100,8 +100,8 @@ export const useGetLogStreamList = () => {
100100
notifications.update({
101101
id: 'load-data',
102102
color: 'red',
103-
title: 'Error Occured',
104-
message: 'Error Occured while fetching streams',
103+
title: 'Error occurred',
104+
message: 'Error occurred while fetching streams',
105105
icon: <IconFileAlert size="1rem" />,
106106
autoClose: 2000,
107107
});

src/hooks/usePostResetPassword.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const usePostUserResetPassword = () => {
3131
id: 'load-data',
3232
color: 'green',
3333
title: 'Password was Changed',
34-
message: 'Successfully Changed!!',
34+
message: 'Successfully Changed',
3535
icon: <IconCheck size="1rem" />,
3636
autoClose: 3000,
3737
});
@@ -44,20 +44,20 @@ export const usePostUserResetPassword = () => {
4444
notifications.update({
4545
id: 'load-data',
4646
color: 'red',
47-
title: 'Error Occured',
47+
title: 'Error occurred',
4848
message: res.data,
4949
icon: <IconFileAlert size="1rem" />,
5050
autoClose: 2000,
5151
});
5252
}
5353
}
5454
} catch(error) {
55-
setError('Failed to get Create User');
55+
setError('Failed to get create user');
5656
notifications.update({
5757
id: 'load-data',
5858
color: 'red',
59-
title: 'Error Occured',
60-
message: 'Error Occured while Creating User',
59+
title: 'Error occurred',
60+
message: 'Error occurred while creating user',
6161
icon: <IconFileAlert size="1rem" />,
6262
autoClose: 2000,
6363
});

src/hooks/usePostUser.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export const usePostUser = () => {
1616
id: 'load-data',
1717
loading: true,
1818
color: '#545BEB',
19-
title: 'Creating User',
20-
message: 'User will be Created.',
19+
title: 'Creating user',
20+
message: 'User will be created.',
2121
autoClose: false,
2222
withCloseButton: false,
2323
});
@@ -30,8 +30,8 @@ export const usePostUser = () => {
3030
notifications.update({
3131
id: 'load-data',
3232
color: 'green',
33-
title: 'User was Created',
34-
message: 'Successfully created!!',
33+
title: 'User was created',
34+
message: 'Successfully created',
3535
icon: <IconCheck size="1rem" />,
3636
autoClose: 3000,
3737
});
@@ -44,20 +44,20 @@ export const usePostUser = () => {
4444
notifications.update({
4545
id: 'load-data',
4646
color: 'red',
47-
title: 'Error Occured',
47+
title: 'Error occurred',
4848
message: res.data,
4949
icon: <IconFileAlert size="1rem" />,
5050
autoClose: 2000,
5151
});
5252
}
5353
}
5454
} catch(error) {
55-
setError('Failed to get Create User');
55+
setError('Failed to get create user');
5656
notifications.update({
5757
id: 'load-data',
5858
color: 'red',
59-
title: 'Error Occured',
60-
message: 'Error Occured while Creating User',
59+
title: 'Error occurred',
60+
message: 'Error occurred while creating user',
6161
icon: <IconFileAlert size="1rem" />,
6262
autoClose: 2000,
6363
});

src/hooks/usePutUserRole.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const usePutUserRole = () => {
1616
id: 'load-data',
1717
loading: true,
1818
color: '#545BEB',
19-
title: 'Updating User',
19+
title: 'Updating user',
2020
message: 'User will be updated soon.',
2121
autoClose: false,
2222
withCloseButton: false,
@@ -30,8 +30,8 @@ export const usePutUserRole = () => {
3030
notifications.update({
3131
id: 'load-data',
3232
color: 'green',
33-
title: 'User was updated',
34-
message: 'Successfully updated!!',
33+
title: 'Updated user',
34+
message: 'Successfully updated',
3535
icon: <IconCheck size="1rem" />,
3636
autoClose: 3000,
3737
});
@@ -44,20 +44,20 @@ export const usePutUserRole = () => {
4444
notifications.update({
4545
id: 'load-data',
4646
color: 'red',
47-
title: 'Error Occured',
47+
title: 'Error occurred',
4848
message: res.data,
4949
icon: <IconFileAlert size="1rem" />,
5050
autoClose: 2000,
5151
});
5252
}
5353
}
5454
} catch(error) {
55-
setError('Failed to get Create User');
55+
setError('Failed to get create user');
5656
notifications.update({
5757
id: 'load-data',
5858
color: 'red',
59-
title: 'Error Occured',
60-
message: 'Error Occured while Updating User Roles',
59+
title: 'Error occurred',
60+
message: 'Error occurred while updating user role(s)',
6161
icon: <IconFileAlert size="1rem" />,
6262
autoClose: 2000,
6363
});

0 commit comments

Comments
 (0)