Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 7595035c

Přidáno uživatelem Lukáš Vlček před více než 2 roky(ů)

AnnotationID as dynamic route part in annotation page

Zobrazit rozdíly:

webapp/contexts/AnnotationContext.tsx
115 115
 * @param props Children that should have access to the annotation context.
116 116
 * @returns Prepared html of the provider.
117 117
 */
118
const AnnotationProvider = (props: { children: React.ReactNode }) => {
118
const AnnotationProvider = (props: {
119
    children: React.ReactNode;
120
    annotationId: string;
121
}) => {
119 122
    /**
120 123
     * Tags managed by the context.
121 124
     */
......
168 171
     */
169 172
    useEffect(() => {
170 173
        //TODO: Implement initialization with values from the server
171
    }, []);
174
    }, [props.annotationId]);
172 175

  
173 176
    return (
174 177
        <AnnotationContext.Provider

Také k dispozici: Unified diff