Skip to content

Commit e968eac

Browse files
authored
Fix/rename js calendar to atwork (#1199)
* Rename JsCalendar component to AtWork and update references * Rename JsCalendar component to AtWork and update all references
1 parent ab40307 commit e968eac

5 files changed

Lines changed: 14 additions & 21 deletions

File tree

src/molecules/ApplicationIcon/ApplicationIcon.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const meta: Meta<typeof ApplicationIcon> = {
3030
'premo',
3131
'sam',
3232
'subsurface portal',
33-
'jscalendar',
33+
'atwork',
3434
],
3535
},
3636
size: { control: 'radio', options: [16, 24, 32, 40, 48, 96] },

src/molecules/ApplicationIcon/ApplicationIcon.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { ApplicationIcon, ApplicationIconProps } from './ApplicationIcon';
44
import {
55
acquire,
66
adca,
7+
atwork,
78
bravos,
89
dasha,
910
fluxMaps,
1011
forecastFormatter,
1112
fourDInsight,
1213
IconDataWithColor,
1314
inPress,
14-
jscalendar,
1515
jsembark,
1616
loggingQualification,
1717
orca,
@@ -42,7 +42,7 @@ const nameOptions: ApplicationIconProps['name'][] = [
4242
'premo',
4343
'sam',
4444
'subsurface portal',
45-
'jscalendar',
45+
'atwork',
4646
];
4747
const sizeOptions: ApplicationIconProps['size'][] = [16, 24, 32, 40, 48];
4848

@@ -68,7 +68,7 @@ const icons: IconsDict = {
6868
premo: premo,
6969
sam: sam,
7070
'subsurface portal': subsurfacePortal,
71-
jscalendar: jscalendar,
71+
atwork: atwork,
7272
};
7373

7474
test('Render correctly with corresponding props', () => {

src/molecules/ApplicationIcon/ApplicationIcon.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import { forwardRef, ForwardRefExoticComponent, RefAttributes } from 'react';
22

33
import { Acquire } from './Icons/Acquire';
44
import { Adca } from './Icons/Adca';
5+
import { AtWork } from './Icons/Atwork';
56
import { Bravos } from './Icons/Bravos';
67
import { Dasha } from './Icons/Dasha';
78
import { FluxMaps } from './Icons/FluxMaps';
89
import { ForecastFormatter } from './Icons/ForecastFormatter';
910
import { FourDInsight } from './Icons/FourDInsight';
1011
import { InPress } from './Icons/InPress';
11-
import { JsCalendar } from './Icons/JsCalendar';
1212
import { JsEmbark } from './Icons/JsEmbark';
1313
import { LoggingQualification } from './Icons/LoggingQualification';
1414
import { Orca } from './Icons/Orca';
@@ -30,7 +30,7 @@ export type ApplicationName =
3030
| 'orca'
3131
| 'portal'
3232
| 'jsembark'
33-
| 'jscalendar'
33+
| 'atwork'
3434
| 'logging-qualification'
3535
| 'pwex'
3636
| 'inpress'
@@ -76,7 +76,7 @@ const apps: ApplicationIconData[] = [
7676
{ appName: ['premo'], component: Premo },
7777
{ appName: ['sam'], component: Sam },
7878
{ appName: ['subsurface portal'], component: SubsurfacePortal },
79-
{ appName: ['jscalendar', 'js calendar'], component: JsCalendar },
79+
{ appName: ['atwork'], component: AtWork },
8080
];
8181

8282
export interface ApplicationIconProps extends Partial<AppIconProps> {

src/molecules/ApplicationIcon/ApplicationIconCollection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ export const fluxMaps: IconDataWithColor[] = [
238238
},
239239
];
240240

241-
export const jscalendar: IconData = {
242-
name: 'jscalendar',
241+
export const atwork: IconData = {
242+
name: 'atwork',
243243
prefix: 'amplify',
244244
height: '24',
245245
width: '24',
Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { forwardRef } from 'react';
22

3-
import { jscalendar } from '../ApplicationIconCollection';
3+
import { atwork } from '../ApplicationIconCollection';
44
import { AppIconProps } from 'src/molecules/ApplicationIcon/ApplicationIcon.types';
55
import ApplicationIconBase, {
66
ShapeProps,
@@ -19,15 +19,8 @@ const shapes: ShapeProps[] = [
1919
},
2020
];
2121

22-
export const JsCalendar = forwardRef<HTMLDivElement, AppIconProps>(
23-
(props, ref) => (
24-
<ApplicationIconBase
25-
ref={ref}
26-
iconData={jscalendar}
27-
shapes={shapes}
28-
{...props}
29-
/>
30-
)
31-
);
22+
export const AtWork = forwardRef<HTMLDivElement, AppIconProps>((props, ref) => (
23+
<ApplicationIconBase ref={ref} iconData={atwork} shapes={shapes} {...props} />
24+
));
3225

33-
JsCalendar.displayName = 'JsCalendar';
26+
AtWork.displayName = 'atWork';

0 commit comments

Comments
 (0)