Skip to content

Commit b283a28

Browse files
committed
Revert "un-camel-casing"
Turns out, apparently the API was camel-cased all along. This reverts commit 4541607.
1 parent 3214cfc commit b283a28

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

modules/auth/components/RegisterModal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ export function RegisterModal(props: RegisterModalProps) {
5252
<Info>
5353
Her kan du opprette en bruker for tilgang til innmeldingsskjema og andre medlemsfunksjoner på siden.
5454
</Info>
55-
<Field label="Fornavn" name="first_name">
56-
<ControlledTextInput placeholder="Ola" autoFocus name="first_name" />
55+
<Field label="Fornavn" name="firstName">
56+
<ControlledTextInput placeholder="Ola" autoFocus name="firstName" />
5757
</Field>
5858
<Field label="Etternavn" name="lastName">
59-
<ControlledTextInput placeholder="Nordmann" name="last_name" />
59+
<ControlledTextInput placeholder="Nordmann" name="lastName" />
6060
</Field>
6161
<Field label="E-post" name="email">
6262
<ControlledTextInput placeholder="[email protected]" name="email" />

modules/video/components/RecentVideoItem.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ export type RecentVideoItemProps = {
5353

5454
export function RecentVideoItem(props: RecentVideoItemProps) {
5555
const { video } = props;
56-
const { id, files, created_time, name } = video.data;
56+
const { id, files, createdTime, name } = video.data;
5757

5858
return (
5959
<Container>
6060
<ThumbnailContainer>
6161
<AspectContainer width={1280} height={720}>
6262
<Link href={`/video/${id}`} passHref>
6363
<a>
64-
<Thumbnail src={files.large_thumb} />
64+
<Thumbnail src={files.largeThumb} />
6565
</a>
6666
</Link>
6767
</AspectContainer>
@@ -72,7 +72,7 @@ export function RecentVideoItem(props: RecentVideoItemProps) {
7272
<a>{name}</a>
7373
</Link>
7474
</Title>
75-
<UploadedDate>lastet opp {format(new Date(created_time), "d. MMM yyyy", { locale: nb })}</UploadedDate>
75+
<UploadedDate>lastet opp {format(new Date(createdTime), "d. MMM yyyy", { locale: nb })}</UploadedDate>
7676
</Content>
7777
</Container>
7878
);

modules/video/components/VideoGridItem.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ export type VideoGridItemProps = {
4444

4545
export function VideoGridItem(props: VideoGridItemProps) {
4646
const { video } = props;
47-
const { id, files, created_time, name } = video.data;
47+
const { id, files, createdTime, name } = video.data;
4848

4949
return (
5050
<Container>
5151
<ThumbnailContainer>
5252
<AspectContainer width={1280} height={720}>
5353
<Link href={`/video/${id}`} passHref>
5454
<a>
55-
<Thumbnail src={files.large_thumb} />
55+
<Thumbnail src={files.largeThumb} />
5656
</a>
5757
</Link>
5858
</AspectContainer>
@@ -64,7 +64,7 @@ export function VideoGridItem(props: VideoGridItemProps) {
6464
</Link>
6565
</Title>
6666
</PrimaryInfo>
67-
<UploadedDate>lastet opp {format(new Date(created_time), "d. MMM yyyy", { locale: nb })}</UploadedDate>
67+
<UploadedDate>lastet opp {format(new Date(createdTime), "d. MMM yyyy", { locale: nb })}</UploadedDate>
6868
</Container>
6969
);
7070
}

modules/video/types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ export type VideoData = {
55
name: string;
66
header: string;
77
organization: OrganizationData;
8-
ogv_url: string;
9-
created_time: string;
8+
ogvUrl: string;
9+
createdTime: string;
1010
files: {
11-
large_thumb: string;
11+
largeThumb: string;
1212
};
1313
};
1414

@@ -20,6 +20,6 @@ export type VideoCategoryData = {
2020
};
2121

2222
export type VideoUploadTokenData = {
23-
upload_token: string;
24-
upload_url: string;
23+
uploadToken: string;
24+
uploadUrl: string;
2525
};

pages/video/[videoId].tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export type ContentProps = {
7777
function VideoView(props: ContentProps) {
7878
const { videoStore } = useStores();
7979
const { video } = props;
80-
const { name, created_time, header, organization, ogv_url, files } = video.data;
80+
const { name, createdTime, header, organization, ogvUrl, files } = video.data;
8181

8282
const videos = useResourceList(video.latestVideosByOrganization, videoStore);
8383

@@ -91,7 +91,7 @@ function VideoView(props: ContentProps) {
9191
}}
9292
/>
9393
<Content>
94-
<VideoPlayer width={1280} height={720} src={ogv_url} thumbnail={files.large_thumb} />
94+
<VideoPlayer width={1280} height={720} src={ogvUrl} thumbnail={files.largeThumb} />
9595
<PrimaryInfo>
9696
<Title>{name}</Title>
9797
<Organization>
@@ -101,7 +101,7 @@ function VideoView(props: ContentProps) {
101101
</Organization>
102102
</PrimaryInfo>
103103
<Description>{header}</Description>
104-
<UploadedDate>lastet opp {format(new Date(created_time), "d. MMM yyyy", { locale: nb })}</UploadedDate>
104+
<UploadedDate>lastet opp {format(new Date(createdTime), "d. MMM yyyy", { locale: nb })}</UploadedDate>
105105
</Content>
106106
<Sidebar>
107107
<SidebarTitle>Nyeste videoer fra {video.organization.data.name}</SidebarTitle>

0 commit comments

Comments
 (0)