Skip to content

Commit

Permalink
fix: unterminated string for default codes
Browse files Browse the repository at this point in the history
  • Loading branch information
pacifiquem committed Apr 13, 2024
1 parent a423edf commit 0ea344e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/kin.provider.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'
"use client";
// KinContext.tsx

import React, { createContext, useState, ReactNode } from 'react';
import React, { createContext, useState, ReactNode } from "react";

interface KinContextProps {
children: ReactNode;
Expand All @@ -15,7 +15,9 @@ interface KinContextValue {
const KinContext = createContext<KinContextValue | undefined>(undefined);

function KinContextProvider({ children }: KinContextProps) {
const [editorValue, setEditorValue] = useState<string>("tangaza_amakuru("Muraho ", injiza_amakuru("Izina ryawe: "), "!")");
const [editorValue, setEditorValue] = useState<string>(
`tangaza_amakuru("Muraho ", injiza_amakuru("Izina ryawe: "), "!")`
);

const updateEditorValue = (newEditorValue: string) => {
setEditorValue(newEditorValue);
Expand Down

0 comments on commit 0ea344e

Please sign in to comment.