Skip to content

Commit

Permalink
chore: add readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnsonMao committed Oct 21, 2024
1 parent 70fcc7c commit 7ade64b
Show file tree
Hide file tree
Showing 59 changed files with 73 additions and 59 deletions.
2 changes: 1 addition & 1 deletion components/shared/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type IconProps = {
className?: string;
};

const Icon = ({ name, className }: IconProps) => {
const Icon = ({ name, className }: Readonly<IconProps>) => {
const GenerateIcon = icons[name];

return <GenerateIcon className={className} aria-hidden />;
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/arcade.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type ArcadeProps = {
className?: string;
};

export default function Arcade({ className }: ArcadeProps) {
export default function Arcade({ className }: Readonly<ArcadeProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/archery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type ArcheryProps = {
className?: string;
};

export default function Archery({ className }: ArcheryProps) {
export default function Archery({ className }: Readonly<ArcheryProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/arrow-left.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type ArrowLeftProps = {
className?: string;
};

export default function ArrowLeft({ className }: ArrowLeftProps) {
export default function ArrowLeft({ className }: Readonly<ArrowLeftProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/arrow-right.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type ArrowRightProps = {
className?: string;
};

export default function ArrowRight({ className }: ArrowRightProps) {
export default function ArrowRight({ className }: Readonly<ArrowRightProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type BadgeProps = {
className?: string;
};

export default function Badge({ className }: BadgeProps) {
export default function Badge({ className }: Readonly<BadgeProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/bright-crown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type BrightCrownProps = {
className?: string;
};

export default function BrightCrown({ className }: BrightCrownProps) {
export default function BrightCrown({ className }: Readonly<BrightCrownProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type CalendarProps = {
className?: string;
};

export default function Calendar({ className }: CalendarProps) {
export default function Calendar({ className }: Readonly<CalendarProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type ChatProps = {
className?: string;
};

export default function Chat({ className }: ChatProps) {
export default function Chat({ className }: Readonly<ChatProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/check.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type CheckProps = {
className?: string;
};

export default function Check({ className }: CheckProps) {
export default function Check({ className }: Readonly<CheckProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/chess-rook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type ChessRookProps = {
className?: string;
};

export default function ChessRook({ className }: ChessRookProps) {
export default function ChessRook({ className }: Readonly<ChessRookProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/clock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type ClockProps = {
className?: string;
};

export default function Clock({ className }: ClockProps) {
export default function Clock({ className }: Readonly<ClockProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/collectbook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type CollectbookProps = {
className?: string;
};

export default function Collectbook({ className }: CollectbookProps) {
export default function Collectbook({ className }: Readonly<CollectbookProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/discord.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type DiscordProps = {
className?: string;
};

export default function Discord({ className }: DiscordProps) {
export default function Discord({ className }: Readonly<DiscordProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/edit-mode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type EditModeProps = {
className?: string;
};

export default function EditMode({ className }: EditModeProps) {
export default function EditMode({ className }: Readonly<EditModeProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type EditProps = {
className?: string;
};

export default function Edit({ className }: EditProps) {
export default function Edit({ className }: Readonly<EditProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/explore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type ExploreProps = {
className?: string;
};

export default function Explore({ className }: ExploreProps) {
export default function Explore({ className }: Readonly<ExploreProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/full-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type FullScreenProps = {
className?: string;
};

export default function FullScreen({ className }: FullScreenProps) {
export default function FullScreen({ className }: Readonly<FullScreenProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/gamepad.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type GamepadProps = {
className?: string;
};

export default function Gamepad({ className }: GamepadProps) {
export default function Gamepad({ className }: Readonly<GamepadProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/github.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type GithubProps = {
className?: string;
};

export default function Github({ className }: GithubProps) {
export default function Github({ className }: Readonly<GithubProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/google.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type GoogleProps = {
className?: string;
};

export default function Google({ className }: GoogleProps) {
export default function Google({ className }: Readonly<GoogleProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/heart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type HeartProps = {
className?: string;
};

export default function Heart({ className }: HeartProps) {
export default function Heart({ className }: Readonly<HeartProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/help-circle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type HelpCircleProps = {
className?: string;
};

export default function HelpCircle({ className }: HelpCircleProps) {
export default function HelpCircle({ className }: Readonly<HelpCircleProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type HomeProps = {
className?: string;
};

export default function Home({ className }: HomeProps) {
export default function Home({ className }: Readonly<HomeProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/host.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type HostProps = {
className?: string;
};

export default function Host({ className }: HostProps) {
export default function Host({ className }: Readonly<HostProps>) {
return (
<svg
className={className}
Expand Down
4 changes: 3 additions & 1 deletion components/shared/Icon/icons/generate/hot-air-balloon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ type HotAirBalloonProps = {
className?: string;
};

export default function HotAirBalloon({ className }: HotAirBalloonProps) {
export default function HotAirBalloon({
className,
}: Readonly<HotAirBalloonProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/house-lock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type HouseLockProps = {
className?: string;
};

export default function HouseLock({ className }: HouseLockProps) {
export default function HouseLock({ className }: Readonly<HouseLockProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/house.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type HouseProps = {
className?: string;
};

export default function House({ className }: HouseProps) {
export default function House({ className }: Readonly<HouseProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/leave-game.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type LeaveGameProps = {
className?: string;
};

export default function LeaveGame({ className }: LeaveGameProps) {
export default function LeaveGame({ className }: Readonly<LeaveGameProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/linkedin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type LinkedinProps = {
className?: string;
};

export default function Linkedin({ className }: LinkedinProps) {
export default function Linkedin({ className }: Readonly<LinkedinProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/log-out.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type LogOutProps = {
className?: string;
};

export default function LogOut({ className }: LogOutProps) {
export default function LogOut({ className }: Readonly<LogOutProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type LogoProps = {
className?: string;
};

export default function Logo({ className }: LogoProps) {
export default function Logo({ className }: Readonly<LogoProps>) {
return (
<svg
className={className}
Expand Down
4 changes: 3 additions & 1 deletion components/shared/Icon/icons/generate/long-arrow-up-left.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ type LongArrowUpLeftProps = {
className?: string;
};

export default function LongArrowUpLeft({ className }: LongArrowUpLeftProps) {
export default function LongArrowUpLeft({
className,
}: Readonly<LongArrowUpLeftProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type MenuProps = {
className?: string;
};

export default function Menu({ className }: MenuProps) {
export default function Menu({ className }: Readonly<MenuProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/move.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type MoveProps = {
className?: string;
};

export default function Move({ className }: MoveProps) {
export default function Move({ className }: Readonly<MoveProps>) {
return (
<svg
className={className}
Expand Down
4 changes: 3 additions & 1 deletion components/shared/Icon/icons/generate/nav-arrow-down.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ type NavArrowDownProps = {
className?: string;
};

export default function NavArrowDown({ className }: NavArrowDownProps) {
export default function NavArrowDown({
className,
}: Readonly<NavArrowDownProps>) {
return (
<svg
className={className}
Expand Down
4 changes: 3 additions & 1 deletion components/shared/Icon/icons/generate/nav-arrow-left.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ type NavArrowLeftProps = {
className?: string;
};

export default function NavArrowLeft({ className }: NavArrowLeftProps) {
export default function NavArrowLeft({
className,
}: Readonly<NavArrowLeftProps>) {
return (
<svg
className={className}
Expand Down
4 changes: 3 additions & 1 deletion components/shared/Icon/icons/generate/nav-arrow-right.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ type NavArrowRightProps = {
className?: string;
};

export default function NavArrowRight({ className }: NavArrowRightProps) {
export default function NavArrowRight({
className,
}: Readonly<NavArrowRightProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/nonpublic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type NonpublicProps = {
className?: string;
};

export default function Nonpublic({ className }: NonpublicProps) {
export default function Nonpublic({ className }: Readonly<NonpublicProps>) {
return (
<svg
className={className}
Expand Down
4 changes: 3 additions & 1 deletion components/shared/Icon/icons/generate/notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ type NotificationProps = {
className?: string;
};

export default function Notification({ className }: NotificationProps) {
export default function Notification({
className,
}: Readonly<NotificationProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/play.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type PlayProps = {
className?: string;
};

export default function Play({ className }: PlayProps) {
export default function Play({ className }: Readonly<PlayProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type PlayerProps = {
className?: string;
};

export default function Player({ className }: PlayerProps) {
export default function Player({ className }: Readonly<PlayerProps>) {
return (
<svg
className={className}
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Icon/icons/generate/plus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type PlusProps = {
className?: string;
};

export default function Plus({ className }: PlusProps) {
export default function Plus({ className }: Readonly<PlusProps>) {
return (
<svg
className={className}
Expand Down
Loading

0 comments on commit 7ade64b

Please sign in to comment.