Projekt

Obecné

Profil

« Předchozí | Další » 

Revize c057279b

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

AnnotationContext added

Zobrazit rozdíly:

webapp/pages/annotation/index.tsx
5 5
import 'antd/dist/antd.css';
6 6
import styles from '/styles/annotation.module.scss';
7 7
import { Occurrence, Tag } from '../../components/models/tag';
8
import AnnotationProvider from '../../contexts/AnnotationContext';
8 9

  
9 10
/**
10 11
 * Creates an annotation screen.
......
43 44
    const changeLength = (occurrence: Occurrence, newValue: number) => {};
44 45

  
45 46
    return (
46
        <MainLayout>
47
            <div className={styles.layoutwrapper}>
48
                <div className={styles.tags}>
49
                    <TagPanel />
47
        <AnnotationProvider>
48
            <MainLayout>
49
                <div className={styles.layoutwrapper}>
50
                    <div className={styles.tags}>
51
                        <TagPanel />
52
                    </div>
53
                    <div className={styles.document}>
54
                        <DocumentAnnotationView />
55
                    </div>
56
                    <div className={styles.annotations}>
57
                        <AnnotationPanel
58
                            tags={tags}
59
                            onAddOccurrence={addOccurrence}
60
                            onChangeVisibility={changeVisibility}
61
                            onDeleteOccurrence={deleteOccurrence}
62
                            onChangePosition={changePosition}
63
                            onChangeLength={changeLength}
64
                        />
65
                    </div>
50 66
                </div>
51
                <div className={styles.document}>
52
                    <DocumentAnnotationView />
53
                </div>
54
                <div className={styles.annotations}>
55
                    <AnnotationPanel
56
                        tags={tags}
57
                        onAddOccurrence={addOccurrence}
58
                        onChangeVisibility={changeVisibility}
59
                        onDeleteOccurrence={deleteOccurrence}
60
                        onChangePosition={changePosition}
61
                        onChangeLength={changeLength}
62
                    />
63
                </div>
64
            </div>
65
        </MainLayout>
67
            </MainLayout>
68
        </AnnotationProvider>
66 69
    );
67 70
}
68 71

  

Také k dispozici: Unified diff