Skip to content

Commit

Permalink
fix: make props readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed May 8, 2024
1 parent a14ad90 commit 19b5d73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/NavigationBar/components/RightSide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface RightSideProps {
path: string;
}

export function RightSide({ cookies, path }: RightSideProps) {
export function RightSide({ cookies, path }: Readonly<RightSideProps>) {
if (cookies.token) {
return getNavbarEnd(path, get2ankiApi());
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/HomePage/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface HomePageProps {
setErrorMessage: ErrorHandlerType;
}

export function HomePage({ setErrorMessage }: HomePageProps) {
export function HomePage({ setErrorMessage }: Readonly<HomePageProps>) {
return (
<HomeContainer>
<HeroSection />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SettingsPage/SettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface SettingsPageProps {

}

export default function SettingsPage({ setErrorMessage }: SettingsPageProps) {
export default function SettingsPage({ setErrorMessage }: Readonly<SettingsPageProps>) {
const customerPortal =
process.env.NODE_ENV === 'development' ?
portalLinks.development : portalLinks.production;
Expand Down

0 comments on commit 19b5d73

Please sign in to comment.