Skip to content

Commit

Permalink
Change props to be readonly.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcgrtz committed Oct 2, 2023
1 parent aad9ceb commit 419c337
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/chat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {format, formatRelative} from 'date-fns';
import {isoDate} from '../constants/date-formats';

type Props = {
history?: Array<{
readonly history?: Array<{
content: string;
name?: string;
timestamp?: Date;
Expand Down
2 changes: 1 addition & 1 deletion src/datetime/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from '../constants/date-formats';

type Props = {
dateTime: Date | number;
readonly dateTime: Date | number;
};

const Wrapper = styled.time`
Expand Down
8 changes: 4 additions & 4 deletions src/hamburger-button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ type LinesProps = {
};

type Props = {
label?: string;
labelActive?: string;
id?: string;
position: Position;
readonly label?: string;
readonly labelActive?: string;
readonly id?: string;
readonly position: Position;
};

const Input = styled.input<{$position: Position}>`
Expand Down
8 changes: 4 additions & 4 deletions src/logo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import React, {StrictMode} from 'react';
import {styled} from 'styled-components';

type Props = {
title?: string;
url?: string;
urlRelations?: string[];
solidColor?: string;
readonly title?: string;
readonly url?: string;
readonly urlRelations?: string[];
readonly solidColor?: string;
};

const Svg = styled.svg`
Expand Down

0 comments on commit 419c337

Please sign in to comment.